Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getAbsolutePageUrl (dataFilePath, pageType) {
const buildFolder = createAndGetBuildFolder()
const pageFolder = getPageFolder(buildFolder, dataFilePath, pageType)
const htmlFilePath = getHtmlFilePath(pageFolder)
const relativePath = path.posix.relative(buildFolder, htmlFilePath)
return path.posix.join(config.commands.build.baseUrl, relativePath)
}
function getAbsolutePageUrl (dataFilePath, pageType) {
const buildFolder = createAndGetBuildFolder()
const pageFolder = getPageFolder(buildFolder, dataFilePath, pageType)
const htmlFilePath = getHtmlFilePath(pageFolder)
const relativePath = path.posix.relative(buildFolder, htmlFilePath)
return path.posix.join(config.commands.build.baseUrl, relativePath)
}