yoshuawuyts / sheet-router

fast, modular client-side router
MIT License
226 stars 18 forks source link

Handle direct url write in browser #36

Open YerkoPalma opened 8 years ago

YerkoPalma commented 8 years ago

I have a choo app which handle programmatic redirect, but when I type a valid url in the browser, then I get a 404 error. Is this a bug? Are there any work around? Maybe with haschange or something?

yoshuawuyts commented 8 years ago

@YerkoPalma have you tried app.start({ hash: true }) - this should allow for hash-only changes to be caught :sparkles:

31 should make this even more convenient in the near future I reckon. Hope this answers your question, cheers!