millermedeiros / crossroads.js

JavaScript Routes
http://millermedeiros.github.com/crossroads.js/
1.44k stars 156 forks source link

Support of native URLs #151

Closed olignyf closed 8 years ago

olignyf commented 8 years ago

Hi, Following the documentation I setup crossroads in my project and I see it only works with hashes # and not raw URL changes. Is this a limitation or just something I missed ? Thanks

sumitkm commented 8 years ago

Hi Francois,

You can use HistoryJS in conjunction with Crossroads to use non-hash urls, but this only works in browser that fully support pushstate (read > IE9...)

You can find an example of how to do this here

https://github.com/millermedeiros/crossroads.js/wiki/Examples#using-with-historyjs

Let us know if this helps, Cheers

Sumit Kumar Maitra code@sumitmaitra.com

On Mon, Sep 12, 2016, at 12:54 PM, Francois wrote:

Hi, Following the documentation I setup crossroads in my project and I see it only works with hashes # and not raw URL changes. Is this a limitation or just something I missed ? Thanks — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[1], or mute the thread[2].

olignyf commented 8 years ago

Thanks ! Yes it helps. I have another question. I hope you don't mind if I open another ticket. At least if other persons come across the same question they will be able to find the answer by googling.