From 7402480c6299c0adaf952c738fb489d6b87ad007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Wed, 3 Feb 2021 19:00:13 +0100 Subject: [PATCH] Allow / suffix on invite URLs This makes them a bit more clickable in some user agents (think email, xmpp) which have to rely on parsing to find and highlight URLs. Fixes #48. --- snikket_web/invite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/snikket_web/invite.py b/snikket_web/invite.py index 4d988eb..a81bf03 100644 --- a/snikket_web/invite.py +++ b/snikket_web/invite.py @@ -48,6 +48,7 @@ def context() -> typing.Mapping[str, typing.Any]: @bp.route("/") +@bp.route("//") async def view(id_: str) -> str: try: invite = await client.get_public_invite_by_id(id_)