datatracker/ietf/help/urls.py
Jim Fenton 891c0e975d
refactor: Move document state help to /doc (#7206)
* Redirect /help/state/draft/* to /doc/help/state/draft-*

* Adjust document state index to use /doc/help/state for URLs

* Move all state help to /doc. Fixes #3802

* Move state index redirect into urls file.
2024-03-22 15:03:10 -05:00

12 lines
390 B
Python

# Copyright The IETF Trust 2013-2022, All Rights Reserved
from ietf.help import views
from ietf.utils.urls import url
from django.views.generic import RedirectView
urlpatterns = [
url(r'^state/(?P<doc>[-\w]+)/(?P<type>[-\w]+)/?$', views.state),
url(r'^state/(?P<doc>[-\w]+)/?$', views.state),
url(r'^state/?$', RedirectView.as_view(url='/doc/help/state/', permanent=True)),
]