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不随浏览页面变动 #369

Closed
Yao-Lirong opened this issue Feb 21, 2023 · 2 comments
Closed

URL不随浏览页面变动 #369

Yao-Lirong opened this issue Feb 21, 2023 · 2 comments
Assignees
Labels

Comments

@Yao-Lirong
Copy link

提出你对主题的建议(Suggest your idea)

当前行为是进入一个博文页面后自动向url添加 #/ ,并随着用户下滑,URL也会发生变化。这样做会导致使用浏览器自带的后退无法回到上一页面。可否 默认/添加选项 使得仅当点选目录的时候url才会发生变化?

比如在这个页面试着稍微用滚轮下滑一会再点浏览器自带的返回,会发现非常麻烦。

其他

据我所知大部分网站的url都是不会随着浏览而改动的,对网页开发所知甚少,希望您考虑。

@LolipopJ
Copy link
Collaborator

看上去修改 URL 的时候生成了新的 history 记录,这本来是应当避免的情况。🧐 我会尝试修复这个问题,感谢反馈!

@LolipopJ
Copy link
Collaborator

LolipopJ commented Jul 5, 2023

Fixed here.

If more trouble is caused, feel free to re-open this issue. XD

@LolipopJ LolipopJ closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants