Hi! 

So, I'm designing an app on outsystems and I'm struggling with the navigation. 

I need to create a ''go back'' button but I can't make it work with the '' navigate to '' widget because I've a few of main screens that are used in different scenarios (edit, create, view details, for example). How can I get the ''previous link" and store it in a variable in order to design that ''go back button'' ? Is that even the way of doing it? 

Hi Carolina,

You can try this component from Forge, or take a look at the code to see how it was done.
It uses the "History" of the browser to accomplish this.

https://www.outsystems.com/forge/component-overview/5586/back-to-previous-page

Cheers.

Eduardo Jauch wrote:

Hi Carolina,

You can try this component from Forge, or take a look at the code to see how it was done.
It uses the "History" of the browser to accomplish this.

https://www.outsystems.com/forge/component-overview/5586/back-to-previous-page

Cheers.


Hi Eduardo, thanks for the tip! 

Would Any of this forge component's logic be usefull if i decide later to have breadcrumbs? I tried with the OS widget but because of those screens i mencionated before i was not able execute it so I decided to make the ''back button'' because I though it would be easier for a start. 

BR

Hi, 

The history will always get you back to the place you came in in the last request, and so on. 

So, it can be very tricky if you have breadcrumbs and allow the user to navigate to different pages but want a Go Back button that will send him to an 'origin'. 

In this case using the history may not work, and you may need to create a solution that is not generic, but specific to your case... 

Cheers.