Files
mykb/util/stripPrefix.js
JJ Kasper e35f6f74eb Fixed route changes not using getUrl causing invalid url to be used when
using pathPrefix, renamed basePath to prefixPath, updated how getUrl
gets the prefixPath to prevent the need for rebuilding when its changed
now just requires restart
2018-06-01 21:17:26 -05:00

9 lines
158 B
JavaScript

const pathPrefix = require('./pathPrefix')
module.exports = url => {
if (pathPrefix !== '/') {
url = url.split(pathPrefix).join('')
}
return url
}