Skip to content

Commit

Permalink
PT-13906: too many redirection (#658)
Browse files Browse the repository at this point in the history
fix: Multiple actions matched. The following actions matched route data and had all constraints satisfied AssetController.HandleStaticFiles and CommonController.InternalRedirect for HEAD and root.
fix: If switching off the setting Allow anonymous users to visit the store, then the storefront requests many redirections
  • Loading branch information
OlegoO authored Oct 19, 2023
1 parent c56be07 commit a08332d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions VirtoCommerce.Storefront/Controllers/CommonController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public ActionResult Maintenance()
/// </summary>
/// <param name="url">URL to redirect</param>
/// <returns>Redirect to URL</returns>
[Route("common/redirect")]
public ActionResult InternalRedirect([FromRoute] string url)
{
return StoreFrontRedirectPermanent(url);
Expand Down
6 changes: 3 additions & 3 deletions VirtoCommerce.Storefront/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
"HttpOnly": true
},
"ExpireTimeSpan": "00:30:00",
"LoginPath": "/Account/Login",
"LogoutPath": "/Account/Logout",
"AccessDeniedPath": "/error/AccessDenied",
"LoginPath": "/sign-in",
"LogoutPath": "/sign-out",
"AccessDeniedPath": "/error/accessdenied",
"SlidingExpiration": true
},
"IdentityOptions": {
Expand Down

0 comments on commit a08332d

Please sign in to comment.