Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

adding a query string to a multi-page template breaks the page handling #5146

Closed
blowsie opened this Issue · 7 comments

5 participants

@blowsie

Issue description

Jquery Mobile Renders the incorrect page when using multi-page template then viewing / refreshing with a query string.

Test page (see below)

http://jquerymobile.com/test/docs/pages/multipage-template.html#two
vs
http://jquerymobile.com/test/docs/pages/multipage-template.html#two?test

Steps to reproduce

Visit the links above

Expected outcome

Should render the #two page and keep the query string in the url

Actual outcome

Renders the multipage-template.html page, and not the nested #two page

jQuery Mobile and jQuery core version used

Lastest at time of writing jqm 1.2.0 / jq1.8

@frequent

Ha! I wanted to report just the same issue :-)

I had a big fuss on SO over this today and bottom line is: I think this might be a bug.

My link was like this (having pushstate disabled):

http://www.page.de/test/mem/search.cfm#/test/mem/some.cfm?id=9900000003869

It seems, that after the hash, parameters are gone. I was able to check for the structure (using coldfusion on the backend), which reported one element (id, value=9900000003869), but no change to access the element because I could query all the CGI and url stuff I wanted, the id wasn't there anymore.

Eventually solved it server-side substring-ing after getting the URL from the actual AJAX request, but quite some hair I had to pull out...

On the other, this was the reason for the pageparam plugin, wasn't it? But I thought this was included in JQM in the meantime. Maybe shed some light on it.

@blowsie

Forgetting anything server side at all. This is an issue is on static HTML pages as per my issue report.

@frequent

@blowsie: I think so, too

@gabrielschulhof
Collaborator

Another query-param-related bug, collected under #4777.

@arschmitz
Owner

closing this issue the official stance has always been this is not supported and we have decided that as of 1.5 we will allow any valid id for embded pages this means ? is a valid character for an id so the params will stay in link however they will not be treated as query params they will be treated as part of the ID

@arschmitz arschmitz closed this
@CameronAskew

@blowsie in the meantime i created a plugin for jqm 1.4 which allows url parameters

https://github.com/CameronAskew/jquery.mobile.paramsHandler

@CameronAskew

@frequent @gabrielschulhof

Please see previous comment. Hopefully this library helps a person or 2...also feel free to contribute or let me know if there are issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.