documentcloud/backbone — pull request #1372 by braddunbar (2012-06-02 14:51:55+00:00)
Title: Fix #1366 - Do not prepend root to history.fragment.

Since the `pushState` branch of `navigate` used `fullFrag` (the fragment to navigate to with the root prepended) it was used to replace the stored fragment. I believe this is incorrect since `history.fragment` should always be the rootless fragment. I tested the pushState behavior by returning to the original pathname in `teardown` and skipping the test in non-pushState browsers.

I also removed the use of `frag` in `navigate` (the fragment with the leading `#` or `/` removed) as I believe it is superfluous.

A test is still needed for #1206 since I've likely affected that functionality. I'll submit one later when I come up with a good way to test it. :)