[英]Clicking href links to pdf pages sometimes takes you to the previous link you clicked (Edge)
We have a place where there are multiple href links that take you to different page numbers in the same PDF document, like so:我们有一个地方有多个 href 链接,可以将您带到同一个 PDF 文档中的不同页码,如下所示:
href="https://url.website.fake/files/2021-01/documents/a_pdf_file.pdf#page=39"
The tester reports that sometimes if they click on link A and then link B, where both links are like the one above but going to different page numbers, the second click will take you to the page number from the previous link.测试人员报告说,有时如果他们单击链接 A,然后单击链接 B,这两个链接都与上面的链接类似,但转到不同的页码,第二次单击会将您带到上一个链接的页码。
I've been trying to reproduce but can never do it.我一直在尝试重现,但永远做不到。 The tester is able to reproduce fairly easily.测试人员能够相当容易地重现。 Does this sound like anything anyone here has experienced?这听起来像这里的任何人都经历过的事情吗? Tester has only been able to reproduce this in Edge.测试人员只能在 Edge 中重现这一点。 Thanks.谢谢。
All browser users are different, so too may be their PDF extension, thus in this case seems they may not have adjusted their Edge viewer use to same as yours.所有浏览器用户都不同,他们的 PDF 扩展名也可能不同,因此在这种情况下,他们似乎没有将 Edge 查看器的使用调整为与您的相同。 Other browsers have different methods but effect can be the same.其他浏览器有不同的方法,但效果是一样的。 You need to educate users to change their browser security.您需要教育用户更改他们的浏览器安全性。
Check the second setting.检查第二个设置。
Most likely theirs is On and yours is Off its included in how to handle site response such as the download to view.很可能他们的是开的,而你的是关的,这包括在如何处理站点响应(例如下载以查看)中。
Using a simple two page file attempting to swap href Sometimes (but not always) throws me a warning使用一个简单的两页文件尝试交换 href有时(但不总是)会向我发出警告
so asking for page 1, I see page 2所以要第 1 页,我看到第 2 页
if I switch it off and refresh I will see Page 1如果我将其关闭并刷新,我将看到第 1 页
For web secure use it is best set On, however for local personal use I tend to switch it Off.对于 web 安全使用,最好将其设置为开,但对于本地个人使用,我倾向于将其关闭。 Most other users would possibly prefer it On to continue at the page where they last read up to.大多数其他用户可能更喜欢打开以继续他们上次阅读的页面。
My MWE which shows above behavior is显示上述行为的我的 MWE 是
<html><head></head>
<body>
<a href="http://africau.edu/images/default/sample.pdf#page=2">link A (page 2)</a><p>
<a href="http://africau.edu/images/default/sample.pdf#page=1">link B (Page 1)</a>
</body></html>
link A (page 2)
链接A(第2页)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.