Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

ChangePage() and Navigation paths refactor #1778

Closed
altus34 opened this issue Jun 3, 2011 · 2 comments
Closed

ChangePage() and Navigation paths refactor #1778

altus34 opened this issue Jun 3, 2011 · 2 comments
Assignees
Milestone

Comments

@altus34
Copy link

altus34 commented Jun 3, 2011

Hi,
Version : jquerymobile10b1pre

As I can see the new Navigation path refactor have as convention something like :

http://jquerymobile.com/test/#/test/demos/index.html

and no more something like this :

http://jquerymobile.com/test/#test/demos/index.html

When I navigate with my navbar or my links all is OK (the path is used with the new approach).

But if i use the $.mobile.changePage({url: "myPage.html"}); the Url is not as excepted : the old fashion is used ?

The big problem occure when I navigate to my page with my NavBar (with good URL formatting) and after go to the same page with the changePage api => Page event beforeshow is not send.

Thanks

@ghost ghost assigned jblas Jun 3, 2011
@jblas
Copy link
Contributor

jblas commented Jun 3, 2011

@altus34

The site/domain relative path changes were made prior to the refactoring by someone else. I'm in the midst of doing some path fixes on the 'path-fixes' branch to make sure things are consistent. The situation you point out is one of the things on my list to fix. When I'm done, the urls will basically look like this:

/* Reference to a page embedded in the application document: */

http://jquerymobile.com/test/#jqm-home

/* Reference to a page that is external to the application document: */

http://jquerymobile.com/test/#/test/demos/index.html

/* Reference to a cross-domain page *(Phone Gap ONLY)* that is external to the application document: */

http://jquerymobile.com/test/#http://someotherdomain.com/foo/bar/file.html

Of course the real end goal is to provide hooks for folks to encode/decode the hash as they wish, but that will come after the path fixes I'm making.

@jblas
Copy link
Contributor

jblas commented Jun 14, 2011

I just landed the fixes that standardize the hash. This should be fixed.

@jblas jblas closed this as completed Jun 14, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants