From 86255f04f7cabc6bbdcb7d20e79083abccda4112 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Mon, 10 Apr 2023 11:39:45 +0200 Subject: [PATCH] fix [target] if in root domain dir: uri file startswith("articles/") --- src/var/lib/tyto/program/dom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/var/lib/tyto/program/dom.py b/src/var/lib/tyto/program/dom.py index 96d47b2..21b8eec 100644 --- a/src/var/lib/tyto/program/dom.py +++ b/src/var/lib/tyto/program/dom.py @@ -165,6 +165,8 @@ if not hole: corrupt = True if not args.target in args.pass_targets: + if args.target.startswith("articles/"): + args.target = args.target.rsplit("articles/")[1] args.target = user_uri_dir + args.target # For logs: show uri if not shortname known