Skip to content

Commit

Permalink
Merge branch 'release/6.20.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed May 23, 2023
2 parents 1db0f02 + 2dcb833 commit cf0f00a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Authors>VirtoCommerce</Authors>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>6.19.0</VersionPrefix>
<VersionPrefix>6.20.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions VirtoCommerce.Storefront/Controllers/ErrorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public IActionResult Error(int? errCode)
[Route("AccessDenied")]
public IActionResult AccessDenied()
{
Response.StatusCode = StatusCodes.Status403Forbidden;
return View("AccessDenied");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public override Task RedirectToAccessDenied(RedirectContext<CookieAuthentication
return Task.CompletedTask;
}

context.RedirectUri = _storefrontUrlBuilder.ToStoreAbsolute(context.RedirectUri).ToAbsolutePath();
var absolutePath = _storefrontUrlBuilder.ToStoreAbsolute(context.RedirectUri).ToAbsolutePath();
context.RedirectUri = WebUtility.UrlDecode(absolutePath);

return base.RedirectToAccessDenied(context);
}
Expand Down

0 comments on commit cf0f00a

Please sign in to comment.