Skip to content

Commit 59334b0

Browse files
committed
Remove maintenance path
1 parent 8acb7f8 commit 59334b0

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

changelog.d/3631.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove maintenance path

python/nav/web/maintenance/urls.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
urlpatterns = [
2626
path('', views.redirect_to_calendar),
27-
# XXX: WTF?
28-
path('calendar/', views.calendar, name='maintenance'),
2927
path('calendar/', views.calendar, name='maintenance-calendar'),
3028
re_path(
3129
r'^calendar/(?P<year>\d{4})/(?P<month>\d{1,2})$',

python/nav/web/maintenance/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
def redirect_to_calendar(_request):
6363
"""Redirect to main page for this tool"""
64-
return redirect(reverse('maintenance'))
64+
return redirect(reverse('maintenance-calendar'))
6565

6666

6767
def calendar(request, year=None, month=None):

0 commit comments

Comments
 (0)