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(
if (pages && pages.length) {
// TODO: smart resolve these pages and check for them
pagePaths = pages.map(page =>
pathIsAbsolute(page) ? pathRelative(pagesDir, page) : page
'/'.concat(pathIsAbsolute(page) ? pathRelative(pagesDir, page) : page)
)
} else {
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