global wgArticlePath and other minor fixes for WEB-5973 +review WEBCR-229