If I add a #nameddest at the end of a web link and open it in IE, it works fine and goes to the named destination, if I open the same link in firefox it just goes to page 1 every time? Am I doing something wrong?
- All posts
- Helpful Solutions
Let's say you have this link: example.com/page.html#section2
That will scroll the page to either of these:
Notice that the id or name value does NOT contain the hash mark (#). If your id or name value contains the hash mark, then you have to double the hash mark in your link.
Does that help?
There have been some examples here in the past where Firefox went to the wrong part of the page (such as the bottom). This can happen when the page length changes dynamically after the content loads. However, this is difficult to diagnose without a link, so if the general comment didn't help, can you reply with a link to the problem page?
Thanks a lot for taking time to help, it is much appreciated! Unfortunately it still doesn't work, see the link below
It just opens at the front page as if the named destination is not there.
I also tried
Th second one works fine in IE but not in firefox.
Aha, a PDF is different than a web page!
For me, that link scrolls down to the 15th page, which seems a bit random. I tried Firefox 20.0.1 and Firefox 21 beta 7, both using the built-in PDF viewer (introduced in Firefox 19). Are you testing in the viewer, or in Adobe's plugin?
There was a bug in the viewer, fixed a little over 3 weeks ago, however, Firefox doesn't pick up these changes immediately.
- initialBookmark doesn't work as expected, possible regression from #2914
- How to disable the built-in PDF viewer and use another viewer
- To install the latest "development version" of the pdf.js library immediately as an extension, see: https://github.com/mozilla/pdf.js/issues/2928#issuecomment-16833605 (comment with the link to the .xpi file)
Thanks I was using the built in viewer, I tried disabling the built in viewer but to no avail, it continued to use the built in viewer whether I liked it or not! I don't really understand what a PDF.JS library is, but I installed it from the link you sent and the named destination works fine now. The problem is though that If other people use the link on different machines, presumably the named destination won't work for them.
Hopefully all will be well when the latest bug fix rolls out globally?
- IMPORTANT ANNOUNCEMENT: We’re going through some system changes, that may have slowed responses to your questions. If you had asked a question in the last couple of months, please re-post it and the community will help you as soon as we can. If you’ve registered after February 7th, please register again, the accounts on the previous site were not migrated to this temporary site. If you joined us before February 7, please reset your password if you have trouble logging into this temporary site.