Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 0f2e81e01b Copy links use the address the browser reached WeKan by when ROOT_URL is loopback.
The snap's default ROOT_URL is 127.0.0.1, and every link built in the
browser - Copy link of a card, list or swimlane, comment permalinks -
goes through Meteor.absoluteUrl(), which reads ROOT_URL, so a browser
that opened WeKan by the machine's name copied a 127.0.0.1 link nobody
else could follow. When ROOT_URL is loopback and the page is not, the
client now builds absolute links from the page's own origin, keeping
ROOT_URL's path. A real ROOT_URL still wins, and the server keeps
ROOT_URL for emails: `snap set wekan root-url=...` remains the setting
for those.

Thanks to n8willis and xet7 !

Fixes #6752.
2026-10-08 14:04:48 +03:00