fix routes for urls that have route details or options open
This commit is contained in:
parent
0f85926916
commit
d27b408acb
1 changed files with 2 additions and 4 deletions
|
@ -25,11 +25,9 @@ def index_paths(pre, suf):
|
|||
path(f'{pre}d/<loc:slug>/{suf}', map_index, {'mode': 'd'}, name='site.index'),
|
||||
path(f'{pre}r/{suf}', map_index, {'mode': 'r'}, name='site.index'),
|
||||
path(f'{pre}r/<loc:slug>/<loc:slug2>/{suf}', map_index, {'mode': 'r'}, name='site.index'),
|
||||
path(f'{pre}r/<loc:slug>/<loc:slug2>/details{suf}', map_index, {'mode': 'r', 'details': True},
|
||||
path(f'{pre}r/<loc:slug>/<loc:slug2>/details/{suf}', map_index, {'mode': 'r', 'details': True},
|
||||
name='site.index'),
|
||||
path(f'{pre}r/<loc:slug>/<loc:slug2>/options{suf}', map_index, {'mode': 'r', 'options': True},
|
||||
name='site.index'),
|
||||
path(f'{pre}r/<loc:slug>/<loc:slug2>/options{suf}', map_index, {'mode': 'r', 'options': True},
|
||||
path(f'{pre}r/<loc:slug>/<loc:slug2>/options/{suf}', map_index, {'mode': 'r', 'options': True},
|
||||
name='site.index'),
|
||||
path(f'{pre}{suf}', map_index, name='site.index'),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue