I have a somewhat odd problem. I have the following Backbone routes:
routes:
"" : "index"
"foo" : "index"
The URI at which I’m working is /appointments/backbone. Here’s what’s weird:
- If I navigate to
/appointments/backbonein either Chrome or Safari, it works just fine; it’s hitting the first route. - If I navigate to
/appointments/backbone#/#fooin Chrome it works, but in Safari it doesn’t. It converts the URI to/appointments/backbone/#/%23fooand I get an error in ashow_view.js, even though I’m not doing anything remotely related to a show view. Visiting/appointments/backbone#asdfor any other gibberish URI produces the same exact error.
I imagine I’m just making some simple mistake. What’s going on?
I’ve been wrestling with this for hours, and now, literally two minutes after I posted the question, I’ve figured out the solution.
Instead of
/appointments/backbone#/#foo, I need/appointments/backbone#foo.