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 is not executed if login-page has "hide at login" config #11

Open
Moongazer opened this issue Dec 1, 2020 · 0 comments
Open

Comments

@Moongazer
Copy link

If the login page has the fe_group = -1 (hide at login) configuration set, the redirect given by return_urlparameter can not be executed. Probably it's because the page restriction is checked before the redirect takes place, which results in a 403 for the login page after a successful login. Setup example:

Startpage: slug = /startpage
Login: slug = /login, fe_group = -1 (hide@login)
Profile: slug = /profile, fe_group = -2 (show@login), extendToSubpages = true
  Edit: slug = /profile/edit
  Logout: slug = /profile/logout

The reason for this setup should be obvious: having only a "Login" button shown in the main-navigation for anonymous user, and after the login, a "Profile" button shows up instead with all restricted pages below it. Or is there a better way to solve such use-case?

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

No branches or pull requests

1 participant