documentcloud/backbone — pull request #1418 by braddunbar (2012-06-16 16:50:22+00:00)
Title: Fix #1366 - Root should not be prepended to history.fragment.

I've taken another shot at #1366 with a mocked `history` in addition to `location`.

The problem remains the same. When using `navigate` with `pushState`, the root should be prepended only for purposes of calling `pushState` or `location.assign`. `history.fragment` should not contain the root.

@jashkenas If you could give this one a try as well I would very much appreciate it. If this or #1414 gets merged I'll rebase and clean up the merge issues afterwards.