From c2d60e1e77332d80996d11584f37e326edc49075 Mon Sep 17 00:00:00 2001 From: Oleg Zhuk Date: Thu, 19 Oct 2023 18:41:23 +0200 Subject: [PATCH] PT-14042: Multiple actions matched for HEAD and root. (#657) fix: Multiple actions matched. The following actions matched route data and had all constraints satisfied AssetController.HandleStaticFiles and CommonController.InternalRedirect for HEAD and root. --- VirtoCommerce.Storefront/Controllers/CommonController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtoCommerce.Storefront/Controllers/CommonController.cs b/VirtoCommerce.Storefront/Controllers/CommonController.cs index 742f78b7..830f9d7a 100644 --- a/VirtoCommerce.Storefront/Controllers/CommonController.cs +++ b/VirtoCommerce.Storefront/Controllers/CommonController.cs @@ -131,7 +131,7 @@ public ActionResult Maintenance() /// /// URL to redirect /// Redirect to URL - [Route("common/redirect")] + [HttpGet] public ActionResult InternalRedirect([FromRoute] string url) { return StoreFrontRedirectPermanent(url);