session-pysogs
session-pysogs copied to clipboard
Please set redirect for ?public_key= web page to prevent Not found.
Hello,
because Sessiond developers not yet made the public group link to cause addition of a group to session, many people "Open" the link (in browser) which cause "Not Found" confusing newbies.
For example: http://sog.caliban.org/espanol?public_key=118df8c6c471ac0468c7c77e1cdc12f24a139ee8a07c6e3bf4e7855640dad821
It would be handy if you add redirect (maybe to http://sog.caliban.org/r/espanol/) or add new page where visitor is instructed (maybe even multi-language) like:
[Click to copy] this address and then paste it to the Session "Join Public Group" section.
This instruction be displayed even on http://sog.caliban.org/r/espanol/ maybe.
This actually needs to be changed on the Session side to change what it expects for SOGS URLs, so that it understands a URL such as http://sog.caliban.org/r/espanol?public_key=...
(i.e. with the /r/
prefix).
The problem with doing it in SOGS is that, because admins can choose room tokens to be whatever they want, there are various SOGS endpoints that can conflict with room tokens in URLS. For instance, if you created a room called "rooms" then the /rooms
URL would be ambiguous between the web URL and the endpoint that Session clients use to retrieve a list of server rooms.
The /r/
prefix, however, is only used for the web viewer, and since Session never fetches it, it should be perfectly safe for Session to learn to strip off a leading /r/
prefix when given such in a SOGS room URL.