Http Reroute Encoding

  • Odoo Version

US$ 117.21 US$ 117.21 117.21000000000001 USD

0 ₫

Option not available

This combination does not exist.

Add to Cart

Fix URL encoding error on rerouting


30-day money-back guarantee
Free Shipping in U.S.
Buy now, get in 2 days

Related issue: https://github.com/odoo/odoo/issues/25176

For multi language website, when request http:/localhost/en_US/something, odoo reroutes from the requested path "/en_US/something" to the new path "/something" with lang=en_US in context. If the new path is a unicode string like "/xin-chào", a error should occur at werkzeug._compat.wsgi_decoding_dance() because the path was not latin1 string. This module fixes the issue by converting the path to latin1 using corresponding wsgi_encoding_dance() before it is passed to wsgi_decoding_dance().