jquery-routes icon indicating copy to clipboard operation
jquery-routes copied to clipboard

Change hash to ( #! )

Open BeetleTN opened this issue 9 years ago • 1 comments

Hi How can replace # in route to #! Like exemple.com/#!/home/

BeetleTN avatar Jan 14 '16 23:01 BeetleTN

Say for the moment you have a home route defined like so:

$.routes.add('/home/', loadHome);

If you want to add a ! to the URL you need to add it behind the first slash:

$.routes.add('!/home/', 'loadHome);

liamjack avatar Dec 29 '16 10:12 liamjack