Skip to content
Snippets Groups Projects
Commit 80a04f7e authored by Paul Morelle's avatar Paul Morelle Committed by Jeremy Kersten
Browse files

[FIX] website: use correct endpoint in get_canonical_url

`router` is a routing map which might be different than the request's.
In this case, `request.endpoint` won't be found as a key of this routing
map, and it will lead to a werkzeug.routing.Builderror.

By re-matching the current path on this specific router, we make sure
that the endpoint will be found in this routing map.

Part-of: odoo/odoo#88011
parent 95f4794e
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment