Content deleted Content added
No edit summary |
to redirect to the redirect |
||
(2 intermediate revisions by the same user not shown) | |||
Line 11:
title: mw.config.get("wgPageName"),
text: `#REDIRECT [[${redirectPageName}]]`,
summary: "Redirected with [[w:en:User:JJPMaster/quickredirect.js|script]]"
},
api = new mw.Api();
Line 17:
api.postWithToken( 'csrf', params ).done( function ( data ) {
console.log( data );
window.___location.href = mw.util.getUrl(mw.config.get("wgPageName"), { redirect: 'no' });
} );
}
|