diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-03-22 17:53:25 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-03-22 18:01:41 +0100 |
| commit | 6207644c00fc9ffe6a17e236b0df351fc456fda3 (patch) | |
| tree | 2c2e531713adb3bb7f3d624aa6ab676ef3d6eaf8 /addons/web/static/src/js | |
| parent | 9d12f90c239a9d30a47cf5dce0ba15a1417f1438 (diff) | |
[FIX] website*: remove technical routes in sitemap
Multiple technical routes were listed in the sitemap,
and it's pointless to list them in the sitemap.
There is currently no way to exclude routes
from the sitemap using a specifc argument
(e.g. sitemap=False on the route).
Therefore, in order to remove them from the sitemap,
we play with the current conditions to exclude
these routes from the sitemap:
- routes with `auth` other than `none` and 'public`
are excluded. Technical routes marked as `auth="public"`
for no reasons are changed to `auth="user" so they
are excluded from the sitemap
- routes with required arguments are excluded as well.
the route `website/image` cannot work without any argument,
`website/image` has therefore been removed from the possible
routes for the method `website_image`, so it's no longer
listed in the sitemap.
For an exhaustive list of the conditions to exclude
a route from the sitemap, check the method
`rule_is_enumerable` in `website/models/website.py`
opw-670865
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
