From ad870b256caead95a6d3fd367f791b740b15149b Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 2 Feb 2012 14:41:36 -0500 Subject: [PATCH] Fixes #933, Fixes #908 --- backbone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backbone.js b/backbone.js index ceb22e5b..e8896567 100644 --- a/backbone.js +++ b/backbone.js @@ -832,9 +832,9 @@ fragment = window.location.hash; } } - fragment = decodeURIComponent(fragment.replace(routeStripper, '')); + fragment = decodeURIComponent(fragment); if (!fragment.indexOf(this.options.root)) fragment = fragment.substr(this.options.root.length); - return fragment; + return fragment.replace(routeStripper, ''); }, // Start the hash change handling, returning `true` if the current URL matches