ember-routemanager icon indicating copy to clipboard operation
ember-routemanager copied to clipboard

popState slicing bug

Open jhorman opened this issue 12 years ago • 1 comments

If base is

http://localhost.local:5000/

and loc is

http://localhost.local:5000/home

then

loc = loc.slice(base.length + 1, loc.length);

produces ome instead of home.

jhorman avatar Jun 01 '12 15:06 jhorman

I think there is also then an issue with _extractLocation. Line 173 prepends "/", which is wrong if the baseURI has a "/" on the end.

jhorman avatar Jun 01 '12 16:06 jhorman