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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Update URL without redirect Thingworx 8.4

jvisser
12-Amethyst

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
14-Alexandrite
(To:jvisser)

Hi jvisser,

 

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

Announcements


Top Tags