Skip to content

Commit

Permalink
Add / to invite URL
Browse files Browse the repository at this point in the history
The new portal version will support this (see [1]). The rationale
is also explained over there, but to summarize: If the link ends
in `_` or `-`, some user agents will not linkify it correctly,
worsening the UX.

   [1]: snikket-im/snikket-web-portal#48
  • Loading branch information
horazont committed Feb 3, 2021
1 parent e568d1f commit 682fba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/files/prosody.cfg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ registration_invite_only = true
-- over what happens when a user invites someone.
allow_contact_invites = false

invites_page = ENV_SNIKKET_INVITE_URL or ("https://"..DOMAIN.."/invite/{invite.token}");
invites_page = ENV_SNIKKET_INVITE_URL or ("https://"..DOMAIN.."/invite/{invite.token}/");
invites_page_external = true

c2s_require_encryption = true
Expand Down

0 comments on commit 682fba8

Please sign in to comment.