From 04cfa2941deb98994c50906fec4b6ebe34fe1fc3 Mon Sep 17 00:00:00 2001 From: Universal Omega <54654040+Universal-Omega@users.noreply.github.com> Date: Mon, 3 Jan 2022 02:50:42 -0700 Subject: [PATCH] Fix window.location.assign to go to namespaced page (#54) --- resources/PortableInfoboxBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/PortableInfoboxBuilder.js b/resources/PortableInfoboxBuilder.js index 3178675..e0e7230 100644 --- a/resources/PortableInfoboxBuilder.js +++ b/resources/PortableInfoboxBuilder.js @@ -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 ) :