Merge pull request #17395 from abpframework/issue-2729

Fix Images don't appear issue
pull/17437/head
Yunus Emre Kalkan 2 years ago committed by GitHub
commit ca4d52917a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,7 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.Extensions.Localization;
@ -108,6 +109,12 @@ namespace Volo.Docs.Pages.Documents.Project
public virtual async Task<IActionResult> OnGetAsync()
{
var displayUrl = Request.GetDisplayUrl();
var decodedUrl = HttpUtility.UrlDecode(displayUrl);
if (decodedUrl != displayUrl)
{
return Redirect(decodedUrl);
}
try
{
return await SetPageAsync();

Loading…
Cancel
Save