简体   繁体   English

单击指向 pdf 页面的 href 链接有时会将您带到您单击的上一个链接 (Edge)

[英]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页)

link B (Page 1)链接B (第1页)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 单击第1页上的链接会将您带到第2页并更改iFrame中的内容 - Clicking link on page 1 takes you to page 2 and chages content in iFrame 在一个站点上有多个页面并单击链接时,页面如何向下滚动? - How are pages called where you have multiple pages on one site and clicking links just scrolls down? 根据您在上一页中单击的标记/参考,将类追加到正文 - Append class to body based on which tag/href you clicked on previous page 单击时如何隐藏链接的 href="dummy1" 附件? - How do you hide href="dummy1" attachment to link when clicked on? 你能在一个中添加两个链接吗<link href=“”>在单个 html 页面中标记? - Could you add two links in a <link href=“”> tag in a single html page? 您如何创建一个链接,当单击该链接时,该链接会将您带到一个页面,同时打开一个新标签页,该标签页会转到另一个网址? - How do you create a link which when clicked takes you to a page and also opens a new tab going to another url? 点击链接后如何保留以前网页的内容? - How do you keep content from your previous web page after clicking a link? 你能“记住”网页上点击了什么链接吗? - Can you “remember” what link is clicked on a webpage? 当您单击链接时转到上一个网页 - Go to the Previous Webpage When You Click a Link 如何解析网页并提取所有href链接? - How do you parse a web page and extract all the href links?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM