-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Transition URL with ampersands #1251
Comments
Alex any chance you could post an example of the issue (html)? I'm having a hard time seeing the different between those two url substrings. |
Hi, Sorry was extremely tired when I wrote this what I meant to say was when the link is test.html?id=2&debug=true When you guys do an ajax call and get the data-url it becomes test.html?id=2&debug=true This cases issues in way it maintains history, so in the code the only thing that needs to be done is redirectLoc = redirectLoc.replace(/&/g,'&'); when you retrieve the data-url. Regards, |
Sorry this keeps escaping the & turns into & amp ; (without the spaces) |
Is this still an issue? I must admit I was having problems too, understanding what the issue was here. Is the issue that when the data-url on a page is set, any ampersands in the query/search part of the URL are getting entity encoded to "&"? |
I'm having trouble reproducing the problem. I basically created a test case that looks like this:
The 2 external files referred to are, file-1.html:
and file-2.html:
Whenever I click on a link with entity-encoded ampersands:
or non-entity-encoded ampersands:
changePage() and loadPage() actually find the exact same page. So unless I'm missing something, I don't think this a problem anymore? I tested on FF, Chrome, and Safari. @alexfalkowski was there a specific browser, platform, and/or device you were seeing this problem on? |
Hi Kin, This bug was raised hen the product was in alpha stage, we currently don’t use it as at that stage it was not working to our ability. We have something coming up soon that will enable for us to exercise these bugs. Sounds like you guys have fixed it. We were seeing this across all browsers. Regards, -----Original Message----- I'm having trouble reproducing the problem. I basically created a test case that looks like this:
The 2 external files referred to are, file-1.html:
and file-2.html:
Whenever I click on a link with entity-encoded ampersands:
or non-entity-encoded ampersands:
changePage() and loadPage() actually find the exact same page. So unless I'm missing something, I don't think this a problem anymore? I tested on FF, Chrome, and Safari. @alexfalkowski was there a specific browser, platform, and/or device you were seeing this problem on? Reply to this email directly or view it on GitHub: |
Just checking...is this fixed? |
I guess this is fixed? I can't reproduce it with the test case I provided above. |
Just in case anyone stumbles upon this... I was having this issue in an ASP.NET MVC site with jQuery Mobile 1.0.1. I believe that I was having a navigation issue with jQuery mobile and the iPad web application I was developing, and setting the data-url attribute had solved that issue. It turns out that I was HTML encoding the URL! I'm using Razor for the view engine and it's default "mode" is to encode all variables that get outputted to the view. Just wrap your code in Html.Raw() and you should be good to go. |
Hi
When a page transitions to another page that contains multiple parameters separated by & it sets the URL to have &
So for example if the link is
test.html?id=2&debug=true
After the transition it becomes test.html?id=2&debug=true. This causes page cache issues.
The following code fixes is redirectLoc = redirectLoc.replace(/&/g,'&'); need to work out how to submit patches :)
Regards,
Alex
The text was updated successfully, but these errors were encountered: