Commit 075aff78 authored by Michal Čihař's avatar Michal Čihař

Add compatibility redirects for old activity charts

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e45c0e3a
......@@ -756,6 +756,36 @@ urlpatterns = patterns(
)
),
# Old activity charts
url(
r'^activity/html/' + TRANSLATION + '$',
RedirectView.as_view(
url='/projects/%(project)s/%(subproject)s/%(lang)s/#activity',
permanent=True,
)
),
url(
r'^activity/html/' + SUBPROJECT + '$',
RedirectView.as_view(
url='/projects/%(project)s/%(subproject)s/#activity',
permanent=True,
)
),
url(
r'^activity/html/' + PROJECT + '$',
RedirectView.as_view(
url='/projects/%(project)s/#activity',
permanent=True,
)
),
url(
r'^activity/language/html/' + LANGUAGE + '/$',
RedirectView.as_view(
url='/languages/%(lang)s/#activity',
permanent=True,
)
),
# Site wide search
url(
r'^search/$',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment