mirror of https://github.com/abpframework/abp.git
9 changed files with 42 additions and 29 deletions
@ -1,4 +1,5 @@ |
|||
@using System.Globalization |
|||
@inherits Volo.Abp.AspNetCore.Mvc.UI.RazorPages.AbpRazorPage<TModel> |
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling |
|||
|
|||
@ -0,0 +1,17 @@ |
|||
using System; |
|||
using Microsoft.AspNetCore.Mvc.Razor; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.RazorPages |
|||
{ |
|||
public abstract class AbpRazorPage<TModel> : RazorPage<TModel> |
|||
{ |
|||
public string ApplicationPath |
|||
{ |
|||
get |
|||
{ |
|||
string str = ViewContext.HttpContext.Request.PathBase.Value; |
|||
return str == null ? "/" : str.EnsureEndsWith('/'); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue