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

404重定向 #2464

Open
DoiiarX opened this issue Jun 2, 2024 · 5 comments
Open

404重定向 #2464

DoiiarX opened this issue Jun 2, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@DoiiarX
Copy link

DoiiarX commented Jun 2, 2024

为什么提出这个新的特性改动
访问不存在的网页不会报404错误,而是直接显示一个空白的网页,用户会陷入死胡同。

描述一下你推荐的解决方案
提供404pageurl的配置,正确使用404状态标识。

描述一下你考虑过的其它替代解决方案

补充说明
补充与此特性相关的内容

@DoiiarX DoiiarX added the enhancement New feature or request label Jun 2, 2024
@tangly1024
Copy link
Owner

tangly1024 commented Jun 5, 2024

不太明白你的意思,需要提供操作步骤和更多信息,目前访问不存在的网页会跳转到404

image

@DoiiarX
Copy link
Author

DoiiarX commented Jun 5, 2024

不太明白你的意思,需要提供操作步骤和更多信息,目前访问不存在的网页会跳转到404

image
image

https://doiiars.com/toast

我这边会非常长时间停留在这个页面。

@DoiiarX
Copy link
Author

DoiiarX commented Jun 5, 2024

我的主题是hex

@Winner365-China
Copy link

我的主题是hex

@DoiiarXblog.config.js-第226行有一个配置,改成1即可。(不过这样你需要在每次更新时重新部署,否则有可能用户点击文章列表里的文章会直接跳到404)

@gosber
Copy link

gosber commented Jun 25, 2024

kukasawa主题也有这个问题,而且在无多语言纯英文的配置下,会跳入到一个中文页面,等待 timeout 后,会停留在中文页几秒后才能回到正常主页。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants