Page MenuHomePhabricator

Kartographer: Broken image page URIs on subpages (image URI path is incorrectly prefixed by parent page name)
Closed, DuplicatePublicBUG REPORT

Description

Links to images are not correct, if a mapframe is added to a subpage that is created by a slash.

Everything works fine in "main articles". It occurs on subpages only where in a bizarre way the base page name is added.

I have had the module checked by Roland. Everything seems to be fine on our wiki.

Event Timeline

Aklapper renamed this task from Kartographer: Broken image links on subpages to Kartographer: Broken image page URIs on subpages (image URI path is incorrectly prefixed by parent page name).Jun 10 2025, 12:24 PM
Aklapper updated the task description. (Show Details)

I guess the ./ part in the href is the culprit here:

<a class="mw-file-description" href="./Datei:Mount_faber_aerial.JPG" title="Mount Faber" data-parsoid="{}">
<img alt="Mount Faber" resource="./Datei:Mount_faber_aerial.JPG" src="//upload.wikimedia.org/wikipedia/commons/thumb/2/20/Mount_faber_aerial.JPG/120px-Mount_faber_aerial.JPG" [...] "></a>
TheDJ subscribed.

Sounds like a Parsoid problem. I’m not sure if this used to work, or never worked in Parsoid.
I remember something similar happening a while ago, but that might have been an another extension.

Confirming this is a Parsoid-specific issue, it does work on legacy.

This is another case of T345568 - the link in the extension is not detected as content that needs to go through ExtractBody in the pipeline, and it is hence not updated with the correct URL.