Skip to content
Permalink
Browse files

Redirect for homepage.

  • Loading branch information...
courtneycb committed Jul 1, 2019
1 parent 68035f4 commit d2d0f12c98c9a6c9f55ed24ff82df8a1b2c063e8
Showing with 7 additions and 3 deletions.
  1. +2 −2 csfieldguide/chapters/urls.py
  2. +5 −1 csfieldguide/general/urls.py
@@ -40,7 +40,7 @@
# eg: redirect /chapters/index.html to /chapters/
url(
r"^index.html$",
RedirectView.as_view(permanent=True, url="/chapters/"),
RedirectView.as_view(permanent=True, pattern_name="chapters:index"),
),
# eg: redirect /chapters/algorithms.html to /chapters/algorithms/
url(
@@ -50,6 +50,6 @@
# eg: redirect /chapters/algorithms.html#searching to /chapters/algorithms/searching/
url(
r"^(?P<chapter_slug>[-\w]+).html#(?P<chapter_section_slug>[-\w]+)$",
RedirectView.as_view(permanent=True, pattern_name="chapters:chapter:chapter_section"),
RedirectView.as_view(permanent=True, pattern_name="chapters:chapter_section"),
),
]
@@ -4,7 +4,7 @@
from . import views
from django.views.generic.base import RedirectView


app_name = "general"
urlpatterns = [
# e.g. csfieldguide.org.nz/
url(
@@ -42,4 +42,8 @@
r"^further-information/releases.html$",
RedirectView.as_view(permanent=True, url="https://cs-field-guide.readthedocs.io/en/latest/changelog.html"),
),
url(
r"^index.html$",
RedirectView.as_view(permanent=True, pattern_name="general:index"),
),
]

0 comments on commit d2d0f12

Please sign in to comment.
You can’t perform that action at this time.