Natixar / natixar-frontend

The static front end of the Natixar SaaS platform
0 stars 5 forks source link

"Back" Button is Seldom Displayed #46

Closed lepeuvedic closed 1 month ago

lepeuvedic commented 1 month ago

Problem:

During navigation, only a few pages show the "Back" button to return to the previous page.

https://github.com/Natixar/natixar-frontend/blob/4aef300952a5d5257cd12d74c276b2fd77c7eb72/src/app-layout/Header/index.tsx#L106

Steps to Reproduce:

  1. Authenticate and enter the Dashboard
  2. Click on a Scope bar and the right arrow to reach the top contributors page
  3. Observe the "Back" button.
  4. Click on the link on contributor name to reach contributor analysis.
  5. Observe no "Back" button in the extra header (no extra header at all)

Desired Behaviour

Every page reached by a link in another page should have the "Back" button when it has been reached in this way. Pages, which can be reached in multiple ways (e.g. from the sidebar menu), need to display the button only when they have been reached in another fashion.

The request is probably never updated, so the "Referer" header cannot be used. Maybe the front needs a navigation stack that is reset when the user uses the sidebar menu.