https://bugzilla.wikimedia.org/show_bug.cgi?id=56988

--- Comment #2 from sp...@wikimedia.org ---
On ee-flow labs instance, invoking Parsoid with
   $ curl localhost:8000/localhost/ -d wt='[[Pagename]] here'
produces

...
<base href="http://ee-flow.wmflabs.org/wiki/Main Page"/>
</head>
<body data-parsoid='{"dsr":[0,318,0,0]}'>
  <p data-parsoid='{"dsr":[0,318,0,0]}'>
    <a rel="mw:WikiLink" href="./Pagename"
data-parsoid='{"stx":"simple","a":{"href":"./Pagename"},"sa":{"href":"Pagename"},"dsr":[0,313,2,2]}'>Pagename</a>
    here
  </p>
...

Note the base href, which will make the href have the right /wiki/ prefix
regardless of the current URL.
But Flow's parsing of the HTML returned by Parsoid ignores the base href, and
it doesn't set base href in its own HTML HEAD.  Flow could do this (assuming
the base href will be the same for all items in the Flow board),
, or it could parse the HTML, or the the Parsoid API could have an option to
generate full paths.

The HTML for [[Pagename]] on a regular wiki page is an absolute path --
href="/wiki/Pagename" , so Parsoid's behavior is different.

Note that some day a user's "My active threads" Flow board might show
conversations from multiple wikis, so absolute URLs might be useful, some day.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to