From 33cdae2f88b5ff13bf7769e064b247febcb12e48 Mon Sep 17 00:00:00 2001 From: Ryan Kirkman Date: Thu, 23 Aug 2012 16:26:52 +1000 Subject: [PATCH] Navigation: Fixed bug where path.convertUrlToDataUrl will incorrectly return an empty string when the absUrl == documentUrl.hrefNoHash with a # on the end --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index a5b88c5c7cb..2e8fa726773 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -179,7 +179,7 @@ define( [ convertUrlToDataUrl: function( absUrl ) { var u = path.parseUrl( absUrl ); - if ( path.isEmbeddedPage( u ) ) { + if ( path.isEmbeddedPage( u ) && !path.isFirstPageUrl( absUrl ) ) { // For embedded pages, remove the dialog hash key as in getFilePath(), // otherwise the Data Url won't match the id of the embedded Page. return u.hash.split( dialogHashKey )[0].replace( /^#/, "" );