Update routes to recognize index.html URLs

This commit is contained in:
Andrew Miner
2015-05-11 10:45:56 -07:00
parent 9e318df625
commit f40f6c8d71
2 changed files with 20 additions and 18 deletions
+9 -9
View File
@@ -118,15 +118,15 @@ module.exports = class CraftingGuideRouter extends backbone.Router
@_recordPageView()
routes:
'(/)': 'route__home'
'browse(/)': 'route__browse'
'browse/:modSlug(/)': 'route__browseMod'
'browse/:modSlug/:itemSlug(/)': 'route__browseModItem'
'browse/:modSlug/tutorials/:tutorialSlug(/)': 'route__browseTutorial'
'configure(/)': 'route__configure'
'craft(/)': 'route__craft'
'craft/:text': 'route__craft'
'login(/)': 'route__login'
'(/(index.html))': 'route__home'
'browse(/(index.html))': 'route__browse'
'browse/:modSlug(/(index.html))': 'route__browseMod'
'browse/:modSlug/:itemSlug(/(index.html))': 'route__browseModItem'
'browse/:modSlug/tutorials/:tutorialSlug(/(index.html))': 'route__browseTutorial'
'configure(/(index.html))': 'route__configure'
'craft(/(index.html)': 'route__craft'
'craft/:text': 'route__craft'
'login(/(index.html))': 'route__login'
'item/:itemSlug': 'deprecated__item'
'crafting/(:text)': 'deprecated__crafting'