@using Microsoft.AspNetCore.Mvc.Localization @using Microsoft.AspNetCore.Http @using Microsoft.ApplicationInsights.AspNetCore.Extensions @inject IViewLocalizer Localizer @{ var host = Context.Request.Host.Host; if (Context.Request.Host.Port.HasValue) { host += $":{Context.Request.Host.Port}"; } var baseDomain = $"{Context.Request.Scheme}://{host}/"; var imageUrl = baseDomain + Url.Content("images/gehgassi_Meta.jpg"); }