[Querystring:url] not working when I use window.history.pushState
Last Post 09/27/2013 4:28 PM by Joseph Craig. 1 Replies.
Author Messages
Cam
Posts:99


--
09/26/2013 2:43 AM  
I am trying to get the URL of a page and storing it in a Form and List.

Unfortunately when I use the window.history.pushState to change the URL, the [Querystring:url] token is not able to capture the updated URL.

Please help.

Scenario:


1. current URL : http://mysite.com/home" target="_blank" rel="nofollow">http://mysite.com/home
2. After a script runs window.history.pushState("object or string", "Title", "/productname");
3. URL becomes http://mysite.com/home" target="_blank" rel="nofollow">http://mysite.com/home/productname


The [Querystring:url] token in the Form and list module is not able to capture the current URL. It still gives the URL "http://mysite.com/home" target="_blank" rel="nofollow">http://mysite.com/home"

It correct result should be URL becomes http://mysite.com/home" target="_blank" rel="nofollow">http://mysite.com/home/productname

I am using the window.history.pushState to store the state of my page which in this case is the name of product the user click in the page.


Please help


Joseph Craig
DNN MVP
Posts:11667


--
09/27/2013 4:28 PM  
Is it possible to see this somewhere?

Joe Craig, Patapsco Research Group
Complete DNN Support


---