diff --git a/server/helpers/page.js b/server/helpers/page.js index 12d4b022..8049edc1 100644 --- a/server/helpers/page.js +++ b/server/helpers/page.js @@ -35,7 +35,7 @@ module.exports = { rawPath = rawPath.replace(unsafeCharsRegex, '') if (rawPath === '') { rawPath = 'home' } - rawPath = rawPath.replaceAll('\\', '').replaceAll('//', '').replaceAll(/\.\.+/ig, '') + rawPath = rawPath.replace(/\\/g, '').replace(/\/\//g, '').replace(/\.\.+/ig, '') // Extract Info let pathParts = _.filter(_.split(rawPath, '/'), p => {