``` Using `window.location.replace()` instead of `.href` is also slightly better for redirects since it won't leave the redirecting page in the browser's back button history. **Other things to check:** That URL points to a PDF file, not a web page. Depending on the browser, this will either display the PDF or trigger a download — it won't really "push" someone to a new page in the traditional sense. If you want them to view it in-browser, this approach should still work, but just be aware of that behavior. Also, double-check that the PDF URL is still valid and accessible. Try opening it directly in an incognito window to confirm it loads. If none of that works, the simplest alternative is to skip the script entirely and just set up a **URL redirect** in Squarespace itself under **Settings → Advanced → URL Mappings**, using a rule like: ``` /your-page-slug -> https://your-pdf-url.pdf 302
  • Customer Service
  • Resources
  • Partners and Affiliates
  • Careers
  • (973) 244-2190
Menu

New Jersey Respiratory

  • Customer Service
  • Resources
  • Partners and Affiliates
  • Careers
  • (973) 244-2190

 

(973) 244-2190   |   Hello@NJRespiratory.com   |   Careers

© 2026 New Jersey Respiratory, Inc  / All rights reserved 


If you have any questions or concerns about our Compliance Program, feel free to contact us at Compliance@NJRespiratory.com