Back Button - Level Up or Previous Page

2

Good morning, I know the question seems strange and kind of obvious, but I have had this doubt at a time ...

Let's say it has the following structure:

Home
Clientes
---Lista
------Editar
---Cadastro

If the buddy is in "Edit", by clicking on my "back" button, by default he goes to "List" ... But if he has entered the "Edit" page directly through the URL for example? The "location back" will not work right? Should I then set my "Back" button already with the top level link (List)?

What would be the right way?

    
asked by anonymous 29.12.2015 / 13:04

2 answers

2

My opinion: If you have this button back on your page, it will really be up to you. The back button of the browser will already do the return function, which I do not prevent you from having the same function on your page, for design or navigation. But in your case you can do what the user "returns" to the page you want.

This can create a logic problem in some other cases, for example:

  • Assuming that page A is forwarded to page C.
  • A B page has been created that will also be forwarded to page C.
  • On the back button on screen C, you would have to either go to page A or page B according to where the user came from.

But if he accesses the C page directly through the URL, what to do?

Understand, then we will have to think carefully, you can leave two links for two pages, or leave for a previous page both in a hierarchical logic such as your question. This will be malleable according to the general structure of your site, and as I said it will be at your discretion.

    
29.12.2015 / 13:22
0

Think of the concept of "going back", which is related to a history.

If the page was directly accessed, the page before it would be the "correct" behavior, but nothing prevents you from forcing your application back to the level above, regardless of where the user came from.

    
29.12.2015 / 13:10