Last modified: 2011-03-13 18:06:45 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 T8588, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6588 - Empty fragment [[#]] does not work
Empty fragment [[#]] does not work
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
Other All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-08 02:08 UTC by omniplex
Modified: 2011-03-13 18:06 UTC (History)
0 users

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


Attachments

Description omniplex 2006-07-08 02:08:57 UTC
[[#]] should result in href="#", but it's stripped,
same effect as http://en.wikipedia.org/wiki/ with
my browser. A crude workaround preserving the # is
[{{fullurl:{{FULLPAGENAME}}}}# #].
Comment 1 Antoine "hashar" Musso (WMF) 2006-07-10 21:05:17 UTC
What is the point in an empty anchor ? We just ignore it
when it is empty, no point in having a link pointing to nothing.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-07-10 22:05:01 UTC
See http://www.ietf.org/rfc/rfc1630.txt: "If the fragment-id is void, the hash
sign may be omitted: A void fragment-id with or without the hash sign means that
the URL refers to the whole object."  However, see what the difference is (if
any) between these two links in your browser:

 http://bugzilla.wikimedia.org/show_bug.cgi?id=6588
 http://bugzilla.wikimedia.org/show_bug.cgi?id=6588#

In Firefox, at least, the former reloads the page, the latter jumps to the top
of the page.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-07-10 22:05:47 UTC
Well, except that Bugzilla's URL-capturing doesn't accept empty fragments
either.  You'll have to manually enter it into the URL bar to see.
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-07-10 22:11:17 UTC
Yes, I know I shouldn't have triple-posted, but anyway, all pages have id
globalWrapper at the very top.  Use that instead; it's a standards-compliant way
of achieving the same effect.

http://en.wikipedia.org/wiki/Main_Page#globalWrapper

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


Navigation
Links