Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章URL前缀【问题】 #2483

Closed
AShanWang opened this issue Jun 7, 2024 · 0 comments
Closed

文章URL前缀【问题】 #2483

AShanWang opened this issue Jun 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AShanWang
Copy link

描述bug
文章URL前缀设为"" 空后,heo主题的网站,分类名大量缺失!
请见:

// 如果此项配置为 '' 空, 则文章将没有前缀路径

期望的正常结果
将URL前缀设为"" 空后,
文章没有前缀路径,直接输入域名/slug就能访问。

复现步骤
NotionNext/blog.config.js
第212行设为""

POST_URL_PREFIX: process.env.NEXT_PUBLIC_POST_URL_PREFIX ?? 'article',

然后去网站看看变化。

环境

  • 【必填】NotionNext版本【最新版】
  • 【必填】主题 heo
  • 【必填】部署方案 vercel
  • 【可选】操作系统: Android, windows]
  • 【可选】浏览器 chrome, firefox

补充说明
以前的版本,设为null
也可让文章用域名+slug访问,
现在不能了。

@AShanWang AShanWang added the bug Something isn't working label Jun 7, 2024
@AShanWang AShanWang changed the title 文章URL前缀【问题】设为"" 空后 文章URL前缀【问题】 Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants