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

bug: 侧边栏跳转 path 中包含 '.' 的项结尾没有 '/' #121

Open
1 task done
taoky opened this issue Sep 25, 2023 · 3 comments
Open
1 task done

bug: 侧边栏跳转 path 中包含 '.' 的项结尾没有 '/' #121

taoky opened this issue Sep 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@taoky
Copy link
Member

taoky commented Sep 25, 2023

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

在侧边栏点击包括 "Rust crates.io 索引镜像" 等项时,URL 显示为:

https://help.mirrorz.org/crates.io-index.git

但不包含 '.' 的项,如 "Alpine 软件仓库",URL 显示为:

https://help.mirrorz.org/alpine/

如果结尾不为 '/',访问会出现 404。

期望的现象(What you expected to happen)

跳转至 "https://help.mirrorz.org/crates.io-index.git/"

如何重现此问题(How to reproduce it)

访问 https://help.mirrorz.org/https://help.mirrors.cernet.edu.cn/,访问左侧边栏中诸如 "Rust crates.io 索引镜像" "GDB Git" 等项,之后刷新页面。

操作系统(OS Version)

N/A

浏览器(如果适用)(Browser version, if applicable)

Firefox 117.0.1

其他环境(Other environments)

N/A

其他需要说明的事项(Anything else we need to know)

N/A

@taoky taoky added the bug Something isn't working label Sep 25, 2023
@taoky
Copy link
Member Author

taoky commented Sep 26, 2023

This "bug" is introduced to Next.js 3 years ago: vercel/next.js#14681 and I don't think that they would like to "fix" it (as it may break some other websites). Maybe we could just add a slash manually in sidebar?

@taoky
Copy link
Member Author

taoky commented Sep 27, 2023

Reported to next.js as vercel/next.js#56090.

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