-
- Downloads
[FIX] http_routing: compat for werkzeug 2.2.x
The path matching logic got reimplemented in werkzeug 2.2[^1] and the new router is no more compatible with regexp groups[^2]. Our custom converter for slugged-records in urls (`'/partner/agrolait-5'` => `5`) has been adapted to match the route using non-capturing groups. It still extracts the slug/id pair using the groups-capturing regexp. [^1]: https://github.com/pallets/werkzeug/pull/2433 [^2]: https://github.com/pallets/werkzeug/pull/2519 Part-of: odoo/odoo#112197
Loading
Please register or sign in to comment