cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Update URL without redirect Thingworx 8.4

jvisser
9-Granite

Update URL without redirect Thingworx 8.4

I am trying to update the URL without re loading the whole page. I have a dropdown that controls the data on the screen and the selected value for this dropdown is passed through the URL. If there is no value passed the user is prompted to select a value.

 

Example:

User navigates to the page with specified value "Example1"

 

The user then selects Example2 from the dropdown.

If they click browser back button, it should take them to Example1

If they click browser refresh, it should show Example2

 

What actually happens is

Back: whatever page you were on before navigating to my page

Refresh: goes to Example1

 

Previously in 8.3 I was able to solve these problems using history.pushState

This is not working post upgrade to 8.4. 

 

Other things I have tried(failed):

location.hash

Cannot use the window object

 

Thanks for any help in advance,

Jordan

1 REPLY 1
gnandyala
13-Aquamarine
(To:jvisser)

Hi jvisser,

 

Yes This JS command might not be working in 8.4 due to security Updates in 8.4.

Top Tags