Fix window.location.assign to go to namespaced page (#54)

This commit is contained in:
Universal Omega 2022-01-03 02:50:42 -07:00 committed by GitHub
parent b0a072ff4a
commit 04cfa2941d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,7 +260,7 @@
recreate: true,
createonly: true
} ).done( () => {
window.location.assign( mw.config.get( 'wgArticlePath' ).replace( '$1', title ) )
window.location.assign( mw.config.get( 'wgArticlePath' ).replace( '$1', namespace + title ) )
} ).fail( ( code, err ) => {
OO.ui.alert(
err.error && err.error.info ? this.msg( 'editerror', err.error.info ) :