[v440] Routing errors when English is disabled (tested with mutiple plugins)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
Upgraded from v430.

Example plugin:
PayPalStandard
Controller
Nop.Plugin.Payments.PayPalStandard.Controllers.PaymentPayPalStandardController.

Issue:
routings work only if English is enabled, if English is disabled this results in "Page not found"
Example routings
RedirectToRoute( "ShoppingCart" );
RedirectToRoute( "OrderDetails", new { orderId = order.Id } );
etc.

Reproduce:
- Disable English and use other language, in my case it is NL
- Check out with PayPalStandard
- Cancel payment calls this url
http://localhost:65283/Plugins/PaymentPayPalStandard/CancelOrder
- RedirectToRoute( "OrderDetails", new { orderId = order.Id } ); is called
- context.HttpContext.Request.Path = "/en/orderdetails/123456"  (en is default in GetLanguageRoutePattern() )
- url rewitten to "/nl/en/orderdetails/133169"
- url rewritten to "/page-not-found"
- url rewritten to "/nl/page-not-found"

Greetings,
Mo
3 года назад
Thanks for pointing out this bug.  Here is a work item.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.