#650·realworld

对于不存在的所有 URL,请提供明确的 404 错误,目前它们默默地重定向到主页

作者: cirosantilli创建于 2021年4月23日更新于 2025年8月2日
标签Status: RFCv2 changelog

例如: - 对于 angular 目前它们默默地重定向到主页: https://demo.realworld.io/#/editor/ 是编辑器,但如果我篡改它: https://demo.realworld.io/#/editorasdfqwer/ 它会立即重定向到: https://demo.realworld.io/#/ 更好的是,应该有个明确的 404 页面不存在错误。 - 对于 https://GitHub.com/gothinkster/react-redux-realworld-example-app 在 9186292054dc37567e707602a15a0884d6bdae35, http://localhost:4101/editorasdf 只是提供一个空白页面,没有重定向。我很高兴 react 没有使用可怕的 `/#/` 东西。

内容来源: realworld-apps/realworld