diff --git a/lib/notion/getPageProperties.js b/lib/notion/getPageProperties.js index ab9e1bd1..d3cbc2fb 100644 --- a/lib/notion/getPageProperties.js +++ b/lib/notion/getPageProperties.js @@ -192,7 +192,10 @@ export function adjustPageProperties(properties, NOTION_CONFIG) { if (siteConfig('PSEUDO_STATIC', false, NOTION_CONFIG)) { if ( !properties?.href?.endsWith('.html') && - !properties?.href?.startsWith('http') + !properties?.href?.startsWith('http') && + properties?.href !== '' && + properties?.href !== '#' && + properties?.href !== '/' ) { properties.href += '.html' }