For ASP.NET MVC Razor pages, create a base tag as shown in the <Head> tag below
<base href="http://@Request.Url.Authority@Request.ApplicationPath" />
and in all your relative JavaScript urls, be sure to start without a slash (/), otherwise it will refer to the root.
For example, create all your URLs, for example
"riskInfo": { url: "Content/images/RiskInfo.png", id: "RI" },
or
$http.POST("Account/GetModelList", this, request, this.bindModelList);
Hitesh.Aneja Apr 13 '13 at 20:27 2013-04-13 20:27
source share