Skip to content

Commit

Permalink
Add redirects for old URLs for front page links per issue #136
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrourke committed Nov 10, 2014
1 parent 2529a1c commit a1b5362
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions viewshare/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,52 +62,67 @@

urlpatterns += patterns('',


#Old help page URLs. OK to use optional trailing slash on redirects; avoid it on template views.

url(r'^import/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/243875-importing-data-into-viewshare"),
name="import"),

url(r'^generate-views/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/244379-generating-views-of-collection-data"),
name="generate-views"),

url(r'^embed-and-share/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/247273-embed-and-share-your-views"),
name="generate-views"),

# Help pages that are linked from templates
url(r'^about/tos$',
TemplateView.as_view(template_name="about/tos.html"),
name="tos"),

url(r'^screencast$',
url(r'^screencast/?$',
RedirectView.as_view(url="about/screencast"),
name="screencast_redirect"),

url(r'^about/screencast$',
TemplateView.as_view(template_name="about/screencast.html"),
name="screencast"),

url(r'^about/community/$',
url(r'^about/community/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com"),
name="community"),

url(r'^about/community/phay-user-story/$',
url(r'^about/community/phay-user-story/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/238997-phay-user-story"),
name="phay-user-story"),

url(r'^about/community/dove-user-story/$',
url(r'^about/community/dove-user-story/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/239623-desegregation-of-virginia-education-dove-project"),
name="desegregation-of-virginia-education-dove-project"),

url(r'^about/community/bpl-user-story/$',
url(r'^about/community/bpl-user-story/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/239606-the-brooklyn-collection-s-fulton-street-trade-card"),
name="the-brooklyn-collection-s-fulton-street-trade-card"),

url(r'^about/help/$',
url(r'^about/help/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase"),
name="help"),

url(r'^about/faq/$',
url(r'^about/faq/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/240426-faq"),
name="faq"),

url(r'^about/userguide/$',
url(r'^about/userguide/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com"),
name="userguide"),

url(r'^about/user-stories/$',
url(r'^about/user-stories/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com/knowledgebase/articles/238378-overview-user-stories"),
name="user-stories"),

url(r'^augment/patterns/$',
url(r'^augment/patterns/?$',
RedirectView.as_view(url="http://viewshare.uservoice.com"),
name="augment-list-patterns"),

Expand Down

0 comments on commit a1b5362

Please sign in to comment.