Skip to content

Fix logout on subsites#78

Merged
csebianlander merged 1 commit intomainfrom
77-fix-logout
Aug 25, 2025
Merged

Fix logout on subsites#78
csebianlander merged 1 commit intomainfrom
77-fix-logout

Conversation

@Anna-M-Thomas
Copy link
Collaborator

This pull request will hopefully close #77 unable to log out on subsites.

I am able to log out from any subsite just fine on local. I am honestly not 100% sure why logout works on local as opposed to on staging.
I do know that using the developer tools to change the action for the logout button on staging from /logout to https://www.metastaging.net/logout results in a successful logout even from subsites. Right click the "logout" button in a subsite and edit the action as shown.

Screenshot from 2025-08-25 21-37-04 Screenshot from 2025-08-25 21-36-52

Something about the local setup allows for posting /logout to a subsite URL, but staging does not.

I am pretty sure that changing the logout action from a relative URL to a named route will solve the problem.

@csebianlander csebianlander merged commit 95c1fca into main Aug 25, 2025
1 check passed
@wrose504
Copy link
Collaborator

Looks good to me!! I'm also unable to replicate the problem seen at ask.metastaging.net locally, so 🤞 this fixes things!

@wrose504 wrose504 deleted the 77-fix-logout branch August 25, 2025 20:33
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.

BUG: Unable to logout on subsites

3 participants