# HG changeset patch # User Paul Boddie # Date 1687280327 -7200 # Node ID 23098f02bda7e266cc6495d4fdc022563b33bc98 # Parent 89d786cbb42dd01fb90f64c161a2db26ab090eb8 Another attempt to fix attachment linking (missing pagenames). diff -r 89d786cbb42d -r 23098f02bda7 moinformat/utils/links.py --- a/moinformat/utils/links.py Sat Apr 08 23:10:02 2023 +0200 +++ b/moinformat/utils/links.py Tue Jun 20 18:58:47 2023 +0200 @@ -3,7 +3,7 @@ """ Link target parsing. -Copyright (C) 2018, 2019, 2022 Paul Boddie +Copyright (C) 2018, 2019, 2022, 2023 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -123,9 +123,10 @@ prefix, identifier = t mapping = metadata and metadata.get("mapping") + pagename = metadata and metadata.get("pagename") if prefix == "attachment" or mapping and mapping.get(prefix): - return LinkTarget(prefix, target, identifier) + return LinkTarget(prefix, target, identifier, pagename) return None