From: Krinkle Date: Sun, 20 Feb 2011 00:12:24 +0000 (+0000) Subject: bug 27146 X-Git-Tag: 1.31.0-rc.0~31867 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=3a24e09b1f07b72bd5c71510ad8ed0a30a59465f;p=lhc%2Fweb%2Fwiklou.git bug 27146 --- diff --git a/resources/mediawiki.action/mediawiki.action.watch.ajax.js b/resources/mediawiki.action/mediawiki.action.watch.ajax.js index 1fbbe4aa27..c0fc40539d 100644 --- a/resources/mediawiki.action/mediawiki.action.watch.ajax.js +++ b/resources/mediawiki.action/mediawiki.action.watch.ajax.js @@ -113,7 +113,11 @@ $( document ).ready( function() { $link.data( 'action', otheraction ); wgAjaxWatch.setLinkText( $link, otheraction ); - $link.attr( 'href', $link.attr( 'href' ).replace( '&action=' + action , '&action=' + otheraction ) ); + $link.attr( 'href', + mw.config.get( 'wgScript' ) + + '?title=' + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) + + '&action=' + otheraction + ); if( $link.closest( 'li' ).attr( 'id' ) == 'ca-' + action ) { $link.closest( 'li' ).attr( 'id', 'ca-' + otheraction ); // update the link text with the new message