You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
A URL containing a query string with a period (".") in it will cause initializePage to change page to $.mobile.firstPage, regardless of the actual page linked.
A period is a valid character in a URL and shouldn't have to be percent encoded.
Fails on jQuery Mobile from git (e5140e1) on iOS 5.1 Safari, Firefox 12 and Chromium 18.
Works with 1.1.0.
Example with two pages (#first-page and #second-page):
I think we should probably add $.mobile.path helper that converts hashes to id's by truncating after an invalid character, since cleanHash just strips the query separator and everything after it even though ? is a valid id character (http://www.w3.org/TR/html4/types.html#type-name).
This unfortunately also highlights the bigger issue which is that we don't currently support query params to embedded pages. Your example actually appears to work by accident:
$("#second-page?foo=bar");
throws an exception, but
$("body").children("#second-page?foo=bar");
returns the page you were expecting for some reason that I haven't take the time to investigate in Core. The reason that $( "body").children( "#second-page?foo=bar.bak" ); doesn't work is because children interprets the dot value as a class selector.
A URL containing a query string with a period (".") in it will cause initializePage to change page to $.mobile.firstPage, regardless of the actual page linked.
A period is a valid character in a URL and shouldn't have to be percent encoded.
Fails on jQuery Mobile from git (e5140e1) on iOS 5.1 Safari, Firefox 12 and Chromium 18.
Works with 1.1.0.
Example with two pages (#first-page and #second-page):
http://jsbin.com/oxosev/
Deep linking to #second-page (works):
http://jsbin.com/oxosev/#second-page
Deep linking to #second-page with query string (works):
http://jsbin.com/oxosev/#second-page?param=abc
Deep linking to #second-page with query string containing period (doesn't work, shows #first-page):
http://jsbin.com/oxosev/#second-page?param=abc.def
The text was updated successfully, but these errors were encountered: