Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Android ICS: URL in address bar doesn't change most of the time #3941

Closed
rbdcti opened this Issue · 8 comments

6 participants

@rbdcti

On my Galaxy Nexus (using the default browser), I go to jquerymobile.com/test/ and click on any of those links. Normally, the URL will not change (even if I'm in a page, it will still say "jquerymobile.com/test/"). If I try the same thing on Chrome Beta on the device, the URL does change as you'd expect (or on FF desktop, or Chrome desktop, etc).

When the URL DOES change, it uses hashes instead of pushstate. According to http://jquerymobile.com/blog/2011/08/26/team-update-week-of-august-22nd/ , pushstate is supported on Android 2.2+, right? Shouldn't this URL 1) be changing as I switch from page to page and 2) not have hashes when it does change?

@rbdcti

I have a Xoom tablet running ICS as well and confirmed both issues on that as well. No issues on Android 3.x emulator...

@toddparker

@rbdrbd - Is your Galaxy running 4.x? Does the AJAX navigation work for you, including the back button? If so, maybe the URL is changing but the display isn't being updated, I've don't usually see nav issues on newer Android devices (2.2+).

@rbdcti

@toddparker: yes, running 4.x, and yes the AJAX nav does work for me fine, including the back button (just tested it now). So e.g. if I use the default browser on the jqm demo site and click on List Views, then Numbered List for example, the URL in the address bar stays as jquerymobile/demos/1.1.0/ ...if I try it on Chrome Beta on the same device, it works as you think it would (the URL changes)

@jaspermdegroot
Collaborator

I can confirm this issue on Android 4.0.4. native browser.
The url remains jquerymobile.com/test when you browse the docs. If you navigate to pages & dialogs > popup > scaling images the url is updated because the link to that page has data-ajax="false".
If you continue browsing from there the url remains .../popup/popup-images.html.
The problem also occurs on test pages other than the docs.

@gabrielschulhof
Collaborator

I can confirm this issue with Android 4.0.3 emulator.

@jaspermdegroot
Collaborator

If you test JQM 1.0 on Android ICS you see the same issue. So it's not a regression from something we changed recently.

@lpfister

Same here with android 4.0.4 xperia phone for jqm 1.3.1, some fix here ?

@arschmitz
Owner

This is actually a known issue on android they dont fully support the history api after 2.3 things "work" but the url does not update. this is not a JQM issue and there is nothing we can do about it https://code.google.com/p/android/issues/detail?id=23979 and http://stackoverflow.com/questions/10620843/pushstate-in-android-4-0. Im going to close this as not a bug

@arschmitz arschmitz closed this
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.