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

           Summary: behavior of empty section link [[#]]
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: http://en.wikipedia.org/w/index.php?oldid=263850468
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: Normal
         Component: Page rendering
        AssignedTo: [email protected]
        ReportedBy: [email protected]


[[#]] or [[#|foobar]] links to a null page name rather than a null section. The
example links point to http://en.wikipedia.org/wiki/ which redirects to the
main page.

(except for [[##]] which points to the current url plus "#.23")

As far as html literalism goes the least astonishing behavior for [[#]] would
be to make a link like this <a href="#">#</a>

that would be the same as "#top" except in cases where it is overridden by a
javascript onClick attribute (which it is, most times you see anything like
this).

course if there's some way to make it turn blue and clickable but not actually
do anything that might be best... i'm not sure when this would intentionally be
used except when attempting to create a blue link that does nothing ever.

That's how i stumbled upon it after all :-/


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to