Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Use a URL name for the redirect instead of a hard-coding

Daniel Quinn101b7bb9bf6b
diff --git a/src/paperless/urls.py b/src/paperless/urls.py
index 1a2e514bc..47509286b 100644
--- a/src/paperless/urls.py
+++ b/src/paperless/urls.py
@@ -45,7 +45,7 @@ urlpatterns = [
url(r"admin/", admin.site.urls),
# Redirect / to /admin
- url(r"^$", RedirectView.as_view(permanent=True, url="/admin/")),
+ url(r"^$", RedirectView.as_view(permanent=True, url="admin:index")),
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)