Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Fix redirect bug #283
Browse files Browse the repository at this point in the history
  • Loading branch information
danielquinn committed Jan 21, 2018
1 parent 09e1b50 commit b747dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/paperless/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b747dd5

Please sign in to comment.