Taliayaya/Apando

Accessing pages with a require Auth from the internet doesn't load CSS

Closed this issue · 0 comments

Describe the bug
Accessing a page from the internet that use the Require Auth component makes the CSS not load with the redirection to /login
It can also be triggered by pressing F5 or clicking on notifications from inside the app. Otherwise, accessing the app from inside works.

Moreover, this bug only appears in production. Development is not affected, which make the bug even worse.

I believe src/component/RequireAuth is the origin of the problem

Similar issue on StackOverflow

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://apando.fr/app or https://apando.fr/join or /create, /dashboard/server_id or /settings....

Expected behavior
The user should be correctly redirected and the CSS loaded

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 99.0.1

Additional context
This bug appears on every browser and OS on the same conditions.