documentcloud/backbone — pull request #1772 by dlamotte (2012-10-24 16:37:17+00:00)
Title: Strip root (if root !== '/') from fragment and allow navigate('/root/x')

Added a test for this condition. I typically do the following which becomes troublesome:

link

$(function() {
$('a').on('click', function(ev) {
ev.preventDefault();
router.navigate($(this).attr('href'));
});

Backbone.history.start({pushState: true, root: '/root/'});
});

It seems best fit for the router to strip the root and not require all calling code to do so.

Without this fix, the location for the page becomes: `/root/root/x`

I ran the tests and everything is passing still. However, I'm not sure what other effects changing `getFragment` to behave like this may have.