Skip to content

Commit

Permalink
Add redirects for topeka and designer
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed Jan 23, 2015
1 parent 0875f5f commit d86c472
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
6 changes: 6 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ handlers:
http_headers:
Access-Control-Allow-Origin: "*"

# Redirects
# This needs to appear above the block below, otherwise anything with a trailing
# slash will fail to redirect
- url: /apps/.*
script: main.app

# Map raw paths with trailing "/" to an index.html file.
- url: /(.*)/$
static_files: _site/\1/index.html
Expand Down
2 changes: 1 addition & 1 deletion css/elements/doc-page.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions elements/common_elements.vulcanized.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion elements/homepage_elements.vulcanized.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import webapp2
from webapp2_extras.routes import RedirectRoute

app = webapp2.WSGIApplication([
RedirectRoute('/apps/topeka/', name='topeka', redirect_to='http://polymer-topeka.appspot.com/', strict_slash=True),
RedirectRoute('/apps/designer/', name='designer', redirect_to='http://polymer-designer.appspot.com/', strict_slash=True)
], debug=False)

0 comments on commit d86c472

Please sign in to comment.