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

Seafile CE 8.0.4 breaks logout page when running under non-root context #2443

Closed
ghost opened this issue Apr 21, 2021 · 3 comments
Closed

Seafile CE 8.0.4 breaks logout page when running under non-root context #2443

ghost opened this issue Apr 21, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 21, 2021

I have configured seafile server to run under the non-root context /seafile

With CE 8.0.4, when logging out from the web site, /accounts/logout/ is being used as logout URL - resulting in a 404 error. The correct URL would be /seafile/accounts/logout/ (which is being shown when entered manually). For 8.0.3 and earlier versions this worked and and used correct URL.

@ghost
Copy link
Author

ghost commented May 17, 2021

Same behaviour still occurs with CE 8.0.5

@dawansv
Copy link

dawansv commented May 19, 2021

Confirming this problem as well (CE 8.0.5). I ended up adding a "Redirect permanent /accounts/logout/ /seafile/accounts/logout/" to my apache conf file but it's not exactly the cleanest way to fix this (and it's a good thing that the /accounts/logout/ url is not actually used by something else)

@ghost
Copy link
Author

ghost commented May 19, 2021

Just as for the login url, the logout url is being loaded from the default settings.py file since 8.0.4, and can be overriden in the conf/seahub_settings.py just like this for a non-root context:

SITE_ROOT = '/seafile/'
LOGIN_URL = '/seafile/accounts/login/'
LOGOUT_URL = '/seafile/accounts/logout/'

After adding the LOGOUT_URL in the same manner, logging out works correctly.

@ghost ghost closed this as completed May 19, 2021
This issue was closed.
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