Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fragment page doesn't go anywhere when "#fragment" isn't a valid page id #218

Open
mato2000 opened this issue Jul 16, 2013 · 1 comment
Open

Comments

@mato2000
Copy link

in jQuery Mobile (without the adapter or angular), when a #fragment page is not found, it loads the first page in the html.
I've found that with the adapter doesn't load any page (just shows a background and the ajax loader)
Is this a desired behaviour?
How can I adapt the jqm original behaviour?
Thanks!
Matias.

@tbosch
Copy link
Contributor

tbosch commented Aug 1, 2013

Hi Matias,
you could set the hash always to empty when the app is opened, so people would always start at the first page.
Or you could try to listen to $locationChangeSuccess event on $rootScope, check $location.hash() and the dom and then change $location.hash() to an empty string if the page does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants