You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by "basantjamwal (via GitHub)" <gi...@apache.org> on 2026/09/24 08:36:21 UTC
Re: [I] Linking to emails that require authentication is confusing [ponymail-foal]
basantjamwal commented on issue #263:
URL: https://github.com/apache/ponymail-foal/issues/263#issuecomment-5810740766
Fixes #263
When a thread URL returns 404 (including private emails the user isn't logged in for), the error dialog said "you may need to be logged in" but gave no way to do it.
**Change**
- Add a "Log in" link (to `oauth.html`) to the error dialog on 404 responses.
- Applied to `webui/js/source/base-http-extensions.js` and the combined `webui/js/ponymail.js`.
**Notes**
- The API still returns 404, so private emails are not revealed.
- The link uses the same flow as the existing profile-menu login, which returns users to the page they came from.
**Testing**
- Served `webui/` locally and opened a thread URL with no backend, which gives a 404. The dialog shows the "Log in" link (screenshot below).
- Not tested against a real OAuth backend.
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/3303a101-971c-45bd-a490-363847510e52" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ponymail.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org