MediaWiki:Common.js: Skirtumas tarp puslapio versijų

nėra keitimo aprašymo
Nėra keitimo santraukos
Nėra keitimo santraukos
 
494 eilutė: 494 eilutė:


// Avoid redirecting for links in categories
// Avoid redirecting for links in categories
$( '.ns-14 .redirect-in-category .mw-redirect' ).each(function(){
$( '.ns-14 .redirect-in-category .mw-redirect' ).each(function() {
     this.href += ( this.href.includes('?') ? '&' : '?' ) + 'redirect=no';
     if ( this.href.includes('?redirect=no') === false ) {
        this.href += (this.href.includes('?') ? '&' : '?') + 'redirect=no';
    }
});
});