documentcloud/backbone — Issue #751: Router & History issues
Author: evil-shrike
Created: 2011-11-17 23:04:54+00:00
State: open

Hello.

I'm trying to get routing working.
Here's my sample:

```html

index

users

```

Without "pushState: true" option for Backbone.history.start :
- Chome (15.0.874.120 m):
-- on load it navigates to "http://localhost/sandbox/bb.html#index" but the index callback isn't called
-- on links click it navigates to appropriate urls ("http://localhost/sandbox/bb.html#users" and "http://localhost/sandbox/bb.html#index"), but callbacks (index,users) aren't called
- FF (8.0)
-- on load it navigates to "http://localhost/sandbox/bb.html#index" but the index callback isn't called
-- on links click it always navigates to "http://localhost/sandbox/bb.html#" and no callbacks are called

if I add "pushState: true" option for Backbone.history.start :
- Chome (15.0.874.120 m):
-- on load it navigates to "http://localhost/sandbox/index" and the index callback is called
-- on links click it navigates to urls ("http://localhost/sandbox/users" and "http://localhost/sandbox/index"), and no callbacks (index,users) are called
- FF (8.0)
-- on load it navigates to "http://localhost/sandbox/index" and the index callback isn't called
-- on links click it always navigates to "http://localhost/sandbox/bb.html" and no callbacks are called

So routing simply doesn't work for me. What am I doing wrong?

p.s. also asked here: https://groups.google.com/d/topic/backbonejs/d0ERikmPSWU/discussion