Last modified: 2011-01-15 12:39:57 UTC
Created attachment 4633 [details] Fixes this bug report. Redirect wikilinks should have a redirect class to allow for customization/highlighting of redirects in user/site CSS. Obsoletes the highly resource-intensive javascript that does the same thing: http://en.wikipedia.org/wiki/User:Dschwen/highlightredirects.js
Created attachment 4634 [details] Reworked patch I have optimized the code a bit and renamed the CSS class to 'mw-redirect' to be consistent with the naming conventions for new CSS classes/IDs. But I wonder if it is intended that this will work only for registered users who have set a threshold > 0 in its preferences? The function getLinkColour() is called from Linker::makeLinkObj for $threshold > 0 only.
On a second thought: applied with r30871. It works for logged in users who have set a threshold > 0 in its preferences. This way no extra database query is necessary.
*** Bug 4709 has been marked as a duplicate of this bug. ***
*** Bug 6962 has been marked as a duplicate of this bug. ***
Improved fix in r30876. It now works for all users, logged in or not and independent of preferences.
(In reply to comment #5) > Improved fix in r30876. It now works for all users, logged in or not and > independent of preferences. Although, note, currently not in all circumstances -- e.g., category links, or anything else using makeLinkObj() (includes lots of special pages). Would be nice to improve LinkCache to fetch and store this info as it does article ID's, so that it could be done efficiently there too. I've left a comment in the code roughly to that effect.
Bug 166 requests full implementation of this feature. *** This bug has been marked as a duplicate of bug 166 ***