Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[navigation] Keep urlHistory in sync with browser history even when m…

…oving to/from a #&ui-state=dialog link via Back/Forward buttons
  • Loading branch information...
commit 851fad0debfbc50deb47d96d6d03de9257aa6756 1 parent c64c1a4
Gabriel "_|Nix|_" Schulhof authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 js/jquery.mobile.navigation.js
10 js/jquery.mobile.navigation.js
View
@@ -1003,6 +1003,16 @@ define( [
if( fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition ) {
isPageTransitioning = false;
mpc.trigger( "pagechange", triggerData );
+
+ // Even if there is no page change to be done, we should keep the urlHistory in sync with the hash changes
+ if( settings.fromHashChange ) {
+ urlHistory.directHashChange({
+ currentUrl: url,
+ isBack: function() {},
+ isForward: function() {}
+ });
+ }
+
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.