Skip to content
Browse files

[navigation] Strip dialogHashKey from url even if it is not an embedd…

…ed page in convertUrlToDataUrl
  • Loading branch information...
1 parent d93c655 commit 410a5a3da186c07c8dcc929802f35790c1dc1ac2 @gabrielschulhof gabrielschulhof committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.navigation.js
View
2 js/jquery.mobile.navigation.js
@@ -166,7 +166,7 @@ define( [
// otherwise the Data Url won't match the id of the embedded Page.
return u.hash.split( dialogHashKey )[0].replace( /^#/, "" );
} else if ( path.isSameDomain( u, documentBase ) ) {
- return u.hrefNoHash.replace( documentBase.domain, "" );
+ return u.hrefNoHash.replace( documentBase.domain, "" ).split( dialogHashKey )[0];
}
return absUrl;
},

0 comments on commit 410a5a3

Please sign in to comment.
Something went wrong with that request. Please try again.