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