79838057

Date: 2025-12-04 15:02:55
Score: 1
Natty:
Report link

I had the same problem. The fix is to add a query parameter before the page anchor:

document.pdf?t=123456#page=10

Edge caches PDF positions by the base URL. Adding ?t=${Date.now()} makes each link unique, so Edge treats them as different resources and doesn't use the cached page position.

Important: The query parameter must come before the #page= anchor, not after it.

// Example implementation  
const url = `${pdfUrl}?t=${Date.now()}#page=${pageNumber}`;  
window.open(url, '_blank');

This workaround was mentioned in What can I do to change this Edge PDF frame behaviour without JavaScript (Firefox works OK)

Reasons:
  • Blacklisted phrase (1): can I do
  • Blacklisted phrase (1): What can I do
  • Whitelisted phrase (-1): I had the same
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Afonso