Skip to content

Commit

Permalink
tag: disable tagging of category redirects (wikimedia-gadgets#1947) (w…
Browse files Browse the repository at this point in the history
  • Loading branch information
TollensWP authored Oct 16, 2024
1 parent a58009e commit 3425932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/friendlytag.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/

Twinkle.tag = function friendlytag() {
// redirect tagging
if (Morebits.isPageRedirect()) {
// redirect tagging (exclude category redirects, which are all soft redirects and so shouldn't be tagged with rcats)
if (Morebits.isPageRedirect() && mw.config.get('wgNamespaceNumber') !== 14) {
Twinkle.tag.mode = 'redirect';
Twinkle.addPortletLink(Twinkle.tag.callback, 'Tag', 'friendly-tag', 'Tag redirect');
// file tagging
Expand Down

0 comments on commit 3425932

Please sign in to comment.