Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2234 - form hijacking wasn't respecting allowCrossDomainPages,…

… now it does!
  • Loading branch information...
commit 2edf53f62d63a909edbd0292e224e902c2a14134 1 parent 42a5c60
@adrianpike adrianpike authored johnbender committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 js/jquery.mobile.navigation.js
View
6 js/jquery.mobile.navigation.js
@@ -1227,8 +1227,10 @@ define( [
url = path.makeUrlAbsolute( url, getClosestBaseUrl($this) );
- //external submits use regular HTTP
- if( path.isExternal( url ) || target ) {
+ // More info about what's going on here is up in useDefaultUrlHandling in the Click routing.
+ // Basically if we loaded via file:// and we've got "allowCrossDomainPages" true, we should use changePage.
+ isCrossDomainPageLoad = ( $.mobile.allowCrossDomainPages && documentUrl.protocol === "file:");
+ if(( path.isExternal( url ) && !isCrossDomainPageLoad) || target ) {
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.