function normaliseInternalLink(routeParts) {
        const ext = ED.asShtml ? '.shtml' : '.html'
        if(routeParts.length == 0) {
            return global.env.REMOTE_DOCS_DIR + 'index' + ext
        }
        routeParts = trimLocalPath(routeParts.join('/'))
        if(!/\.[a-z]{3,4}/.test(routeParts[routeParts.length-1])) {
            return global.env.REMOTE_DOCS_DIR + routeParts.join('/') + ext
        }
        else {
            return global.env.REMOTE_DOCS_DIR + routeParts.join('/')
        }

        /**
         * removes the local folder directory for correct browser linking
         * @param {string} filePath 
         * @returns {string}
         */
         function trimLocalPath(filePath) {
            return filePath.indexOf(global.env.PATH_TO_PAGES_DIR) == 0 ? filePath.slice(global.env.PATH_TO_PAGES_DIR.length+1).split('/') : filePath.split('/')
        }
    }
adds the global remote directory root to all internal links.

Adds '.html' suffix is no siffix is provided
@param {string[]} routeParts 
@return {string}