Bug ID: 62691
           Summary: Flow: Parsoid ref handling broken by <base href> tag
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Flow
       Web browser: ---
   Mobile Platform: ---

In a Flow post, add the wikitext:


Parsoid generates a reference counter and a references section with <a
href="#cite_note-1"> links between them. Wahoo!

But Flow's includes/View.php outputs a
  <base href="/wiki/Talk:Name_of_Flow_board">
tag. That turns the local href into a full URL to the Flow board. So if you
view a single topic at its Permalink, then clicking the [1] or ↑  forces a page
reload (unfortunate) and if the post is old and not part of the first 10 topics
on the board, the fragment won't be on the page at all (bad).

The comment in View.php before outputting a base href tag is "Temporary hack to
make relative links work when the page is requested as /w/index.php?title=".
But nowadays links to pages and to images are no longer relative links, they
are absolute paths like href="/wiki/Main_Page" and
 So maybe the base href is no longer required?

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to