Last modified: 2008-06-12 09:56:29 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 T15244, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13244 - #section fragment on page property gone from hyperlink
#section fragment on page property gone from hyperlink
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Markus Krötzsch
http://ontoworld.org/wiki/SMW_unit_te...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-04 10:56 UTC by S Page
Modified: 2008-06-12 09:56 UTC (History)
0 users

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


Attachments

Description S Page 2008-03-04 10:56:21 UTC
Wiki links can have a page section on the end, e.g. [[Main_Page#Topics]].

MediaWiki displays the #section_name in the page text and it is part of the HTML hyperlink so that when you click it your browser takes you to the named subsection anchor:
  <a href="/wiki/Main_Page#Topics" title="Main Page">Main_Page#Topics</a>

If you turn such a link to a semantic annotation by prepending with a property name, e.g. [[Test relation::Main_Page#Topics]], then SMW displays the #section_name, but it's gone from the HTML hyperlink:
  <a href="/wiki/Main_Page" title="Main Page">Main_Page#Topics</a>

So just by adding an annotation, the wiki link changes HTML and thus behavior.  It's really odd to see the fragment on the end of the page name but not to have it in the hyperlink.


Note that neither a MediaWiki link nor an SMW page property stores the #section_name fragment.  Some users have asked that SMW support semantic relations between page sections, but that's a separate enhancement.  This bug only asks for consistent wiki page HTML after adding annotation.
Comment 1 Markus Krötzsch 2008-06-12 09:56:29 UTC
Fragments are now preserved for display on the page. They have no semantic relevance -- the Factbox still shows the plain link to clarify that.

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


Navigation
Links