Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 96165dc

Browse files
author
Gabriel Schulhof
committed
[navigation] directHashChange: normalize comparison terms with decodeURIComponent()
Conflicts: js/jquery.mobile.navigation.js
1 parent 845e93c commit 96165dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ define( [
329329
$.each( urlHistory.stack, function( i, historyEntry ) {
330330

331331
//if the url is in the stack, it's a forward or a back
332-
if( opts.currentUrl === historyEntry.url ) {
332+
if ( decodeURIComponent( opts.currentUrl ) === decodeURIComponent( historyEntry.url ) ) {
333333
//define back and forward by whether url is older or newer than current page
334334
back = i < urlHistory.activeIndex;
335335
forward = !back;

0 commit comments

Comments
 (0)