Last modified: 2013-04-12 23:05: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 T44122, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42122 - LinkHandler doesn't understand $wgCapitalLinks
LinkHandler doesn't understand $wgCapitalLinks
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
token-stream transforms (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Molly White
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-15 00:34 UTC by Mark Holmquist
Modified: 2013-04-12 23:05 UTC (History)
5 users (show)

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


Attachments

Description Mark Holmquist 2012-11-15 00:34:55 UTC
There are a lot of things that Parsoid doesn't support, but MediaWiki does. One of those things is $wgCapitalLinks [0].

It allows for two different [1] pages [2] to be linked as the same characters with a different first-letter capitalization. This is important for some wikis.

Simple solution: Add a configuration variable, and use it to support this option in Parsoid. Look in js/lib/ext.core.LinkHandler.js for the best place to add it.

There is also $wgCapitalLinkOverrides [3], but you may rightly want to support that in a different patch.

[0] https://www.mediawiki.org/wiki/Manual:$wgCapitalLinks
[1] https://en.wiktionary.org/wiki/word
[2] https://en.wiktionary.org/wiki/Word
[3] https://www.mediawiki.org/wiki/Manual:$wgCapitalLinkOverrides
Comment 2 Mark Holmquist 2013-03-26 21:01:50 UTC
Assigning Molly, so she can take a whack at Parsoid.
Comment 3 Mark Holmquist 2013-04-12 23:05:45 UTC
Ha! I'm slow. https://gerrit.wikimedia.org/r/56352 submitted and merged.

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


Navigation
Links