fix [target] if in root domain dir: uri file startswith("articles/")
This commit is contained in:
parent
e72ed8e9e3
commit
86255f04f7
|
@ -165,6 +165,8 @@ if not hole:
|
||||||
corrupt = True
|
corrupt = True
|
||||||
|
|
||||||
if not args.target in args.pass_targets:
|
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
|
args.target = user_uri_dir + args.target
|
||||||
|
|
||||||
# For logs: show uri if not shortname known
|
# For logs: show uri if not shortname known
|
||||||
|
|
Loading…
Reference in New Issue