Page MenuHomePhabricator

Links sometimes point to /w/Pagename instead of /wiki/Pagename
Closed, ResolvedPublic0 Estimated Story Points

Description

  1. https://nl.wikipedia.org/w/index.php?title=Kinepolis_Enschede&veaction=edit
  2. Look at any link

Actual result:
Links are broken, actually pointing to https://nl.wikipedia.org/w/CineStar-Kino and https://nl.wikipedia.org/w/Bioscoop instead of /wiki.

Network:

https://nl.wikipedia.org/api/rest_v1/page/html/Kinepolis_Enschede?redirect=false containing:

<base href="//nl.wikipedia.org/wiki/"/>
..
<a rel="mw:WikiLink" href="./Bioscoop" title="Bioscoop" id="mwBQ">bioscoop</a> in
..  <a rel="mw:WikiLink" href="./CineStar-Kino" title="CineStar-Kino" id="mwBw">CineStar-Kino</a>

Which looks fine.

But the CE surface contains:

<a rel="mw:WikiLink" href="./Bioscoop" title="Bioscoop" id="mwBQ">bioscoop</a> in ..
.. <a rel="mw:WikiLink" href="./CineStar-Kino" title="CineStar-Kino" id="mwBw">CineStar-Kino</a>

Which is broken relative to the current url, which is https://nl.wikipedia.org/w/index.php?title=Kinepolis_Enschede&veaction=edit.

Event Timeline

I get a properly resolved URL in the CE using Ubuntu + Chrome/Firefox:

<a class="..." href="https://nl.wikipedia.org/wiki/Bioscoop" title="Bioscoop">...</a>

Your pasted CE code looks wrong, because there are no CE classes, and it still contains the rel and id, which aren't copied to the CE.

Jdforrester-WMF changed the task status from Open to Stalled.May 30 2017, 7:16 PM
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.

I get a properly resolved URL in the CE using Ubuntu + Chrome/Firefox:

<a class="..." href="https://nl.wikipedia.org/wiki/Bioscoop" title="Bioscoop">...</a>

Still happening for me. This is from a plain load of https://nl.wikipedia.org/w/index.php?title=Kinepolis_Enschede&veaction=edit in latest Chrome. No further steps.

Screen Shot 2017-06-30 at 17.50.45.png (1×1 px, 445 KB)

Krinkle changed the task status from Stalled to Open.Jul 1 2017, 12:53 AM

@matmarex I assume that this is also what is causing text from this sandbox to make links point back to the sandbox once published in main space? (if not, please shout and I'll file a different task.)

Deskana set the point value for this task to 0.

This appears to be completely solved now.

Firstly, it should be next to impossible to end up on a page with a /w/index.php style URL without manually typing it in, so this is an edge case to start with. Secondly, even if you do somehow end up on a page with that kind of URL, the problem that @Krinkle reported appears to be fixed, since the URLs in the links work just fine and correctly point to a valid /wiki/ style URL.