Repository navigation
Is Url.AbsoluteContent extension method still available in version 5? #122
Unanswered
xperiandri
asked this question in
Q&A
Replies: 4 comments
|
I recommend switching to use |
0 replies
|
Then this change is what you expect, isn't it? // OLD
new Uri(Url.AbsoluteContent($"~/img/og-image.jpg?v={favIconVersion}")),
// NEW
new UriBuilder(request.Scheme,
request.Host.Host,
request.Host.Port.GetValueOrDefault(),
Url.Content($"~/img/og-image.jpg?v={favIconVersion}"))
.Uri, |
0 replies
|
Hmmmm, this is a good question and I can't see an answer for how to do this using https://docs.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-2.1 Reopening until we get an answer. |
0 replies
|
This is now answered in dotnet/AspNetCore.Docs#16501. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I can't find those extension methods
All reactions