1.4 stripping url params
1.4 stripping url params
I have a single page which I want to change the contents of depending on params passed to it.
If using href like : #mypage?id=123, after page change the url in the address bar will be #mypage, making it impossible to refresh the page or if I go to another page the back button will visit the page minus params.
This kind of thing worked in previous versions, e.g:
http://www.moretechtips.net/2012/07/dynamic-page-generation-in-jquery.html
This does not work either:
var $page = $("#mypage");
$.mobile.changePage( $page, {
dataUrl: "#mypage?id=123"
})
;
The page will change but address bar will be #mypage
Is this a bug or a feature?