IQSS / dataverse-frontend

An upcoming and modernized UI for Dataverse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For Dataset Page, handle unauthorized response from the API differently from version not found.

ekraffmiller opened this issue · comments

In the SPA, if an unauthenticated user tries to access the draft version of a dataset, the page redirects to the latest published version with a message that the the Draft version wasn't found, for example:

Screenshot 2024-02-14 at 2 19 40 PM

In JSF, instead of showing the latest version, the user is redirected to the login page. We don't have login built into the SPA yet, so maybe we can show an unauthorized page? Or keep the behavior as is, and add the logic to redirect to login when it is available.