mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix redirect bug #283
This commit is contained in:
parent
09e1b505e1
commit
b747dd58c3
@ -44,8 +44,8 @@ urlpatterns = [
|
|||||||
# The Django admin
|
# The Django admin
|
||||||
url(r"admin/", admin.site.urls),
|
url(r"admin/", admin.site.urls),
|
||||||
|
|
||||||
# Catch all redirect back to /admin
|
# Redirect / to /admin
|
||||||
url(r"", RedirectView.as_view(permanent=True, url="/admin/")),
|
url(r"^$", RedirectView.as_view(permanent=True, url="/admin/")),
|
||||||
|
|
||||||
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user