Browse Source
Merge pull request #17395 from abpframework/issue-2729
Fix Images don't appear issue
pull/17437/head
Yunus Emre Kalkan
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs
|
|
|
@ -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(); |
|
|
|
|