Get deep linking to internal pages working again. We can now also deep link to nested list sub-pages that are contained within internal pages.

This commit is contained in:
Kin Blas 2011-06-08 15:06:41 -07:00
parent 33b9ee8052
commit 8e1e77badf

View file

@ -1065,7 +1065,7 @@
//if to is defined, load it
if ( to ) {
$.mobile.changePage( to, { transition: transition, changeHash: false, fromHashChange: true } );
$.mobile.changePage( ( path.isPath(to) ? "" : "#" ) + to, { transition: transition, changeHash: false, fromHashChange: true } );
}
//there's no hash, go to the first page in the dom
else {