Is there a way in the router to reset the url to the default page regardless of the current page the user is on if they refresh the browser?
user navigates to http://appname.com/index.html#/somepage and refreshes the app stays on #/somepage I want it to go back to the start page on refresh not refresh the hash page.
This might be a bit hackish, but it works for me.
In your backbone router’s initialize function, place this as the first line:
That will remove the hash from the URL and your router should route correctly.