mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 23:16:51 +00:00
Merge pull request #2504 from tangly1024/fix/pseudo-static-index-url
fix 伪静态 index url 异常
This commit is contained in:
@@ -192,7 +192,10 @@ export function adjustPageProperties(properties, NOTION_CONFIG) {
|
|||||||
if (siteConfig('PSEUDO_STATIC', false, NOTION_CONFIG)) {
|
if (siteConfig('PSEUDO_STATIC', false, NOTION_CONFIG)) {
|
||||||
if (
|
if (
|
||||||
!properties?.href?.endsWith('.html') &&
|
!properties?.href?.endsWith('.html') &&
|
||||||
!properties?.href?.startsWith('http')
|
!properties?.href?.startsWith('http') &&
|
||||||
|
properties?.href !== '' &&
|
||||||
|
properties?.href !== '#' &&
|
||||||
|
properties?.href !== '/'
|
||||||
) {
|
) {
|
||||||
properties.href += '.html'
|
properties.href += '.html'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user