discipline_bit = match.group(1) or ''
region_bit = '/region/%d' % region if region != 'all' else ''
rest = path[match.end():]
- if not rest.startswith('/recherche'):
+ if not rest.startswith('/recherche/'):
rest = '/'
return discipline_bit + region_bit + rest
discipline_bit = '/discipline/%d' % discipline if discipline != 'all' else ''
region_bit = match.group(2) or ''
rest = path[match.end():]
- if not rest.startswith('/recherche'):
+ if not rest.startswith('/recherche/'):
rest = '/'
return discipline_bit + region_bit + rest