diff options
Diffstat (limited to 'StoneIsland/www/js/vendor/view/router.js')
| -rw-r--r-- | StoneIsland/www/js/vendor/view/router.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/StoneIsland/www/js/vendor/view/router.js b/StoneIsland/www/js/vendor/view/router.js index 82cf9e12..bff039b7 100644 --- a/StoneIsland/www/js/vendor/view/router.js +++ b/StoneIsland/www/js/vendor/view/router.js @@ -15,6 +15,8 @@ var Router = View.extend({ parseRoute: function(pathname){ + if (pathname[0] !== "/" && pathname[0] !== "#") { pathname = "/" + pathname } + var routes = is_mobile ? this.mobileRoutes : this.routes, path = pathname.split("/"); |
