Chancer
08/11/2023, 8:25 AMAmbert
08/11/2023, 8:29 AMAmbert
08/11/2023, 8:29 AM_httpContext.Request.Host
to get the root urlChancer
08/11/2023, 8:33 AMhtml
var flagUrl = $"~/assets/{c.TwoLetterISOLanguageName}.svg";
<img src="@flagUrl" /></a>
But this ended up creating a url to:
"https://localhost:44375/en/~/assets/en.svg"
So perhaps I was doing something wrong there 😅Ambert
08/11/2023, 8:34 AMChancer
08/11/2023, 8:35 AMChancer
08/11/2023, 8:35 AMAmbert
08/11/2023, 8:35 AM