Last modified: 2010-05-15 15:32:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2917, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 917 - external links in section headers cause problems with internal anchor links
external links in section headers cause problems with internal anchor links
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.4.x
All All
: Low minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Help:S...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-20 05:58 UTC by lɛʁi לערי ריינהארט
Modified: 2010-05-15 15:32 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description lɛʁi לערי ריינהארט 2004-11-20 05:58:19 UTC
See [[meta:Help:Section#Section_linking_bugzilla_917]] (a extra 
anchor at [[meta:Help:Section#Section_linking]]).

If "http:" is included in the anchor no internal link will be 
generated.

Another extra anchor to a similar example is available at 
[[en:User_talk:IMSoP#bugzilla_917]].

Regards Reinhardt
Comment 1 Leonard G. Barton 2004-12-30 16:30:45 UTC
Added by Leonard G.: Troubleshooting info. If you this is in a redirect and you click on the redirect info at the top of the destination page to get to the 
redirect page, then click on the link there, it will go to the correct subsection. Example at http://en.wikipedia.org/wiki/Mission_Style, a redirect to a section 
in http://en.wikipedia.org/wiki/California_mission ~~~~
Comment 2 Rowan Collins [IMSoP] 2005-04-06 16:21:35 UTC
(In reply to comment #1)
> Added by Leonard G.: Troubleshooting info. If you this is in a redirect [...]

Redirects to sections don't work, and probably never will. I see no external
links there, so that's a completely unrelated issue.

Comment 3 Rowan Collins [IMSoP] 2005-04-06 17:12:35 UTC
A bit of testing shows that, under 1.4.1:
* links to a heading containing an external link now work as expected if you
copy the escaped form from the link in the TOC (e.g.
[[#foo.A0.28http:.2F.2Fexample.com.2Ffoo.29]]). It's not pretty, but it works.

* typing the link as it *appears* in the TOC still breaks (for some reason, the
space becomes ".A0" in the anchor, but "_" in the link; more importantly, the
URL part gets parsed as an external link). This is relatively minor, since at
least you *can* link to the heading; the ".A0" thing's weird though.

* a heading with just a bare URL at the beginning breaks all attempts to link to
it (see
http://en.wikipedia.org/w/index.php?title=User:IMSoP/sandbox&oldid=11960099 for
an example). This is more of a problem - although easily worked around by just
not using a bare URL as a heading! The key difference is that
"#http://example.com" on its own would be a valid link (whereas
"#foohttp://example.com" wouldn't); the change from "//" into ".2F.2F" should
make that irrelevant, but the parser currently counts links like
"http:example.com" as valid (which, strictly, it shouldn't - see bug 787)
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-08-17 22:23:31 UTC
This was fixed at some point.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links