Page MenuHomePhabricator

Render onsite URLs written in external link form like internal links
Closed, DuplicatePublic

Description

All links written in external link form ([http://example.tld example]) are displayed with class="external text". However not all of them are external:

  1. [{{fullurl:foo|action=history}} History of foo]
  2. [http://such.wikipedia.org/w/index.php?title=foo&actionhistory History of foo]
  3. [{{fullurl:foo|action=history}}]
  4. [http://such.wikipedia.org/w/index.php?title=foo&actionhistory]
  5. {{fullurl:foo|action=history}}
  6. http://such.wikipedia.org/w/index.php?title=foo&actionhistory

Examples above produce the same output although it's page on local wiki. At least first two or four examples should be rendered as internal links (with class="internal").


Version: unspecified
Severity: enhancement

Details

Reference
bz11124

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:52 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz11124.
bzimport added a subscriber: Unknown Object (MLST).

It actually has been meant the way that this kind of links should not have class="external text" but class="internal" instead thus different formatting than regular external links to sites outside as well as to regular wikilinks can be set.

[[foo|bar]]
-> <a href="/wiki/foo" title="foo">bar</a>

[{{fullurl:foo|action=history}} history] (and other cases shown above)
-> <a href="/w/index.php?title=foo&amp;action=history" class="internal" title="foo">history</a>

[http://example.tld example]
-> <a href="http://example.tld" class="external text" title="http://example.tld" rel="nofollow">example</a>

  • This bug has been marked as a duplicate of bug 11477 ***