Mã hóa URL khi Định tuyến lại

  • Phiên bản Odoo

2.441.000 ₫ 2.441.000 ₫ 2441000.0 VND

0 ₫

Tuỳ chọn không khả dụng

Sự kết hợp này không tồn tại.

Thêm vào Giỏ

Fix URL encoding error on rerouting


Cam kết 30 ngày hoàn tiền
Miễn phí Giao hàng tại VN.
Mua ngay, nhận trong 2 days

The problem

For multi language website, when request http:/localhost/en/something, Odoo reroutes from the requested path "/en/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.

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

The Solution

This module fixes the issue by converting the path to latin1 using corresponding wsgi_encoding_dance() before it is passed to wsgi_decoding_dance().

Editions Supported

  1. Community Edition
  2. Enterprise Edition