fredy
fredy copied to clipboard
"Open in Fredy" links from email adapters land on the overview instead of the listing
What happens
Clicking "Open in Fredy" in a notification email opens Fredy, but after login you end up on the overview — never on the listing the email was about.
Why
The UI is served through a HashRouter, so routes only exist after the #. Most adapters already build the link correctly:
// telegram, slack, discord, ntfy, mattermost, pushover, apprise, console
`${baseUrl}/#/listings/listing/${id}`
But the email adapters (resend, smtp, mailJet, sendGrid) and the http adapter are missing the /#:
// resend.js, smtp.js, mailJet.js, sendGrid.js, http.js
fredyUrl: `${baseUrl}/listings/listing/${l.id}`
The router never sees the route in the path part, so it silently falls back to the default view.
Verified
Headless Chrome against a live instance:
https://<host>/listings/listing/<id>→ login → ends on#/dashboard(console:No routes matched location "/login")https://<host>/#/listings/listing/<id>→ login → lands on the exact listing, detail page renders
Fix is a one-character-ish change in five adapters, PR incoming.