diff options
| author | Romain Derie <rde@odoo.com> | 2020-02-13 12:50:55 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2020-02-18 14:08:02 +0000 |
| commit | 7dd70438e1ec5799a91623bbf7f4798453882b67 (patch) | |
| tree | 1409745a07f819cf0bde1fd3142521a4aad188ba /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | cc7f89bee75c56a9004c12b14ca915ea01162507 (diff) | |
[FIX] website: list real url endpoint, not 301 url
Sitemap uses `generate()` results, which were using `_rec_name` as slugified
URL.
Routing map has endurl using slugified `display_name` which is checked against
during `dispatch()`, that will redirect 301 to that url.
For instance:
- `/shop/product/acoustic-bloc-screens-23` is listed in sitemap while this
URL is not the correct endpoint. Reaching this URL will 301 redirect you to
`/shop/product/furn-6666-acoustic-bloc-screens-23`.
- `http://localhost:8069/event/design-fair-los-angeles-1` in sitemap which
redirect to `/event/design-fair-los-angeles-2020-02-14-2020-02-18-1`.
Sitemap should contains endurl, not 301 URL.
task-2119086
closes odoo/odoo#45642
X-original-commit: f4c60bd55920d4e24de817634032649b3c3caff0
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
