Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect when not connected #174

Merged
merged 3 commits into from
Oct 20, 2023
Merged

Redirect when not connected #174

merged 3 commits into from
Oct 20, 2023

Conversation

soline-b
Copy link
Collaborator

@soline-b soline-b commented Oct 19, 2023

This Pull Request relates to ticket CW-402.

When trying to access to some pages (for instance /jobs/search) unlogged, a anonymous user was not redirected to the login page, but the page was displayed anyway. As the anonymous user has no access, this did not end up with a leak of data, but could lead to some errors (for instance when trying to change web settings of the user) and is counter-intuitive for the user experience.

Copy link
Contributor

@notoraptor notoraptor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soline-b C'est bon pour moi ! J'ai testé en local, on est bien redirigé vers la page d'accueil si on consulte les autres pages sans être connecté. Vérifié pour /jobs/, jobs/dashboard, jobs/interactive, /settings, etc.

@soline-b soline-b merged commit a24b269 into master Oct 20, 2023
1 check passed
@soline-b soline-b deleted the redirect-when-not-connected branch October 20, 2023 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants