Fix pathname again
This commit is contained in:
@@ -25,7 +25,7 @@ export async function getStaticPaths() {
|
||||
}
|
||||
|
||||
const settings = await getSettings();
|
||||
const pathName = Astro.url.pathname.replace(/\/$/, "");
|
||||
const pathName = Astro.url.pathname === "/" ? "/" : Astro.url.pathname.replace(/\/$/, "");
|
||||
const page = await getPage(settings, pathName);
|
||||
|
||||
console.log(pathName);
|
||||
|
||||
Reference in New Issue
Block a user