Skip to main content
1-Visitor
May 16, 2019
Solved

Reloading the Home Mashup page on click of back button

  • May 16, 2019
  • 2 replies
  • 1523 views

@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??

Best answer by slangley

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

slangleyCommunity ManagerAnswer
Support
May 16, 2019

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

Support
May 22, 2019

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