odoo/odoo#277992
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: (runtime 1010s)
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 5s)
- ci/documentation: (runtime 1044s)
- ci/design-theme: (runtime 1848s)
- label
- odoo-dev:saas-19.3-19.0-redirect-slug-jke-549297-fw
- head
- 9fd0fd4fd09c8467e3a8c9a36d62dcec5aa9d38c
- merged
- 2 days ago by Accounting, Habib Ayob (ayh)
| odoo/odoo | |
|---|---|
| 19.0 | #276515 |
| saas-19.1 | #277909 |
| saas-19.2 | #277923 |
| saas-19.3 | #277992 |
| saas-19.4 | #278045 missing r+ |
| master |
[IMP] website: support unslugified url for redirect
In some cases, you want to redirect a record with ModelConverter, whatever the slug value.
E.g. /shop/old-name-1 => /shop/alt-product-10
/shop/new-name-1 => /shop/alt-product-10
/fr/shop/nom-1 => /shop/alternatif-product-10
/de/shop/produktname-1 => /de/shop/produktname-10
In this case, adding only one redirect /shop/1 => /shop/10 covers the need to support all the translated slugs and the old name that we remember.
On odoo.com we have this need e.g. when we archive a Job Position, we create a redirect, but in some cases the job position is translated or has been renamed and we don't remember all the old urls. With this change, we will be able to redirect all old urls, translated urls, ... with only one redirect.
/jobs/10 -> /explore-more-opportunities-with-us
Forward-Port-Of: #276515