baseprime / grapnel

The smallest JavaScript router with named parameters, HTML5 pushState, and middleware support
http://grapnel.js.org
468 stars 40 forks source link

How to Init Hash navigation #68

Closed pravin-d closed 7 years ago

pravin-d commented 7 years ago

I'm trying to use the basic hash navigation. However unless I do a router.navigate(''), the router does not get init. So when I call domain.com or domain.com/ it should hit the router and be init-ed to domain.com/#/home Any Idea how to do this ?

baseprime commented 7 years ago

For Grapnel to remain unobtrusive, it's up to your app to call router.navigate() to initialize subsequent events.