Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.watch.ajax.js |
— | — | @@ -113,7 +113,11 @@ |
114 | 114 | |
115 | 115 | $link.data( 'action', otheraction ); |
116 | 116 | wgAjaxWatch.setLinkText( $link, otheraction ); |
117 | | - $link.attr( 'href', $link.attr( 'href' ).replace( '&action=' + action , '&action=' + otheraction ) ); |
| 117 | + $link.attr( 'href', |
| 118 | + mw.config.get( 'wgScript' ) |
| 119 | + + '?title=' + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) |
| 120 | + + '&action=' + otheraction |
| 121 | + ); |
118 | 122 | if( $link.closest( 'li' ).attr( 'id' ) == 'ca-' + action ) { |
119 | 123 | $link.closest( 'li' ).attr( 'id', 'ca-' + otheraction ); |
120 | 124 | // update the link text with the new message |