Skip to content

Commit

Permalink
Simplify /help redirect pattern (#1366)
Browse files Browse the repository at this point in the history
Restrict /help redirect to just `/help` or `/help/`. Anything else following help should get handled by scratchr2.
  • Loading branch information
chrisgarrity committed Jun 23, 2017
1 parent 39b1400 commit 6469ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
},
{
"name": "help",
"pattern": "^/help/?(\\?.*)?$",
"routeAlias": "/help/?\\??",
"pattern": "^/help/?$",
"routeAlias": "/help",
"redirect": "/tips"
},
{
Expand Down

0 comments on commit 6469ac3

Please sign in to comment.