Skip to content

Commit

Permalink
refactor: reunite url patterns
Browse files Browse the repository at this point in the history
Adds option for a trailing "/" when using an extension,
which was not previously supported but should be somewhere
between harmless and a feature.
  • Loading branch information
jennifer-richards committed Nov 3, 2024
1 parent 02aafe5 commit 6961b66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ietf/meeting/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ def get_redirect_url(self, *args, **kwargs):
url(r'^week-view(?:.html)?/?$', AgendaRedirectView.as_view(pattern_name='agenda', permanent=True)),
url(r'^materials(?:.html)?/?$', views.materials),
url(r'^request_minutes/?$', views.request_minutes),
url(r'^materials/%(document)s/?$' % settings.URL_REGEXPS, views.materials_document),
url(r'^materials/%(document)s(?P<ext>\.[a-z0-9]+)$' % settings.URL_REGEXPS, views.materials_document),
url(r'^materials/%(document)s(?P<ext>\.[a-z0-9]+)?/?$' % settings.URL_REGEXPS, views.materials_document),
url(r'^session/?$', views.materials_editable_groups),
url(r'^proceedings(?:.html)?/?$', views.proceedings),
url(r'^proceedings(?:.html)?/finalize/?$', views.finalize_proceedings),
Expand Down

0 comments on commit 6961b66

Please sign in to comment.