Permalink
Browse files

[navigation] directHashChange: normalize comparison terms with decode…

…URIComponent()

Conflicts:

	js/jquery.mobile.navigation.js
1 parent 845e93c commit 96165dcbe7e019ea48b8b25f87e57334817c6d4e @gabrielschulhof gabrielschulhof committed Jul 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.navigation.js
@@ -329,7 +329,7 @@ define( [
$.each( urlHistory.stack, function( i, historyEntry ) {
//if the url is in the stack, it's a forward or a back
- if( opts.currentUrl === historyEntry.url ) {
+ if ( decodeURIComponent( opts.currentUrl ) === decodeURIComponent( historyEntry.url ) ) {
//define back and forward by whether url is older or newer than current page
back = i < urlHistory.activeIndex;
forward = !back;

0 comments on commit 96165dc

Please sign in to comment.