Unverified Commit b871e436 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Add a leading slash to passed pages (#6808)

parent 20768ff3
...@@ -67,7 +67,7 @@ export default async function build( ...@@ -67,7 +67,7 @@ export default async function build(
if (pages && pages.length) { if (pages && pages.length) {
// TODO: smart resolve these pages and check for them // TODO: smart resolve these pages and check for them
pagePaths = pages.map(page => pagePaths = pages.map(page =>
pathIsAbsolute(page) ? pathRelative(pagesDir, page) : page '/'.concat(pathIsAbsolute(page) ? pathRelative(pagesDir, page) : page)
) )
} else { } else {
pagePaths = await collectPages(pagesDir, config.pageExtensions) pagePaths = await collectPages(pagesDir, config.pageExtensions)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment