From dbf3a87aee13bdb9ba96bd60554e89b2c25176d7 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sun, 24 Jan 2021 18:57:37 +0100 Subject: [PATCH] Support @user/node in [[wikilinks]]. --- app/agora.py | 1 + app/util.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/agora.py b/app/agora.py index 76c7b71..238d57e 100644 --- a/app/agora.py +++ b/app/agora.py @@ -158,6 +158,7 @@ def node(node): ) @bp.route('/node/@') +@bp.route('/node/@/') @bp.route('/@/') def subnode(node, user): diff --git a/app/util.py b/app/util.py index 39a391a..530ed91 100644 --- a/app/util.py +++ b/app/util.py @@ -57,7 +57,8 @@ def canonical_wikilink(wikilink): wikilink.lower() # chars that convert to -, slug-like. .replace(' ', '-') - .replace('/', '-') + # not a good idea in the end. + #.replace('/', '-') .replace('\'', '') # chars that are elided. .replace('%', '')