Skip to main content
May 16, 2019 10:23 AM UTC
Solved

Reloading the Home Mashup page on click of back button

@slangley 

 

After successfully logging in using the ThingWorx Default Login page, the user will land on the home page mashup which i have created. If the user clicks on the browser back button while on this home page, we need to reload the page. 

But if the user navigates to other mashups/ pages and clicks the back button it can navigate to the previous screen.

 

So basically Immediately after logging in i need make the Browsers back button behave like a reload and not allow the user to go back to the login page.

How can i achieve this in thingworx??

slangleyAnswer
May 16, 2019 8:09 PM UTC

Hi @Dabbler_Aish.

 

The browser's back button can't be overridden, but you could create an intermediary mashup that redirects you to the landing page on load.  In this way, when you hit back the first time it will take you to that intermediary page and then redirect you back to the landing page, reloading it.

 

Regards.

 

--Sharon

2 replies

slangleyAnswer
May 16, 2019 8:09 PM UTC

Hi @Dabbler_Aish.

 

The browser's back button can't be overridden, but you could create an intermediary mashup that redirects you to the landing page on load.  In this way, when you hit back the first time it will take you to that intermediary page and then redirect you back to the landing page, reloading it.

 

Regards.

 

--Sharon

May 22, 2019 6:27 PM UTC

Hi @Dabbler_Aish.

 

If you are satisfied with the previous response, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon