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 @@ urlpatterns = [ # 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)