Fix Images don't appear issue

pull/17395/head
Salih 2 years ago
parent cf59d45a9b
commit 4d8cd89f37

@ -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