From b747dd58c3614d366ada14624523a7c66a05cdf7 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 21 Jan 2018 17:33:04 +0000 Subject: [PATCH] Fix redirect bug #283 --- src/paperless/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paperless/urls.py b/src/paperless/urls.py index 89852b1d2..1a2e514bc 100644 --- a/src/paperless/urls.py +++ b/src/paperless/urls.py @@ -44,8 +44,8 @@ # The Django admin url(r"admin/", admin.site.urls), - # Catch all redirect back to /admin - url(r"", RedirectView.as_view(permanent=True, url="/admin/")), + # Redirect / to /admin + url(r"^$", RedirectView.as_view(permanent=True, url="/admin/")), ] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)