User:JJPMaster/Scripts/quickredirect.js: Difference between revisions

Content deleted Content added
for global use
to redirect to the redirect
 
(One intermediate revision by the same user not shown)
Line 17:
api.postWithToken( 'csrf', params ).done( function ( data ) {
console.log( data );
window.___location.href = mw.util.getUrl(mw.config.get("wgPageName"), { redirect: 'no' });
___location.reload();
} );
}