Skip to content

Replace broken Log out link on static error pages with a Home link#5636

Open
awwaiid wants to merge 2 commits into
mainfrom
static-error-pages-home-link
Open

Replace broken Log out link on static error pages with a Home link#5636
awwaiid wants to merge 2 commits into
mainfrom
static-error-pages-home-link

Conversation

@awwaiid

@awwaiid awwaiid commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

The static error pages (403/404/422/500) had a logout link relying on data-method="delete", which needs rails-ujs — JavaScript those static pages never load. Clicking it degraded to GET /users/sign_out, which has no route.

Rather than adding a GET sign-out route (a logout-CSRF vector that link prefetchers can also trigger), this drops the logout button completely. Instead we'll look back to home/dashboard and as long as the whole app isn't crashed then they can log out from there.

Implements #5101

Replaces #5189

awwaiid added 2 commits July 19, 2026 11:26
The static error pages (403/404/422/500) had a logout link relying on data-method="delete", which needs rails-ujs — JavaScript those static pages never load. Clicking it degraded to GET /users/sign_out, which has no route.

Rather than adding a GET sign-out route (a logout-CSRF vector that link prefetchers can also trigger), this drops the logout button completely. Instead we'll look back to home/dashboard and as long as the whole app isn't crashed then they can log out from there.
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.

1 participant