-
Notifications
You must be signed in to change notification settings - Fork 477
Closed
Description
It seems if the initial page load (in browser) already contains the local route then the route doesn't fire.
routes =
'/test': -> debugger
router = new Router(routes)
router.init()The only way I've found to get the initial route to trigger is with this little hack:
initialRoute = window.location.hash.replace(/^#/, '')
router.setRoute('/')
router.setRoute(initialRoute)
Anyone else experiencing this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels