How to Return to SharePoint Home Page from PDF Quick Links
Question details
Users need a way to redirect view-only intranet visitors back to the SharePoint Online site home page instead of the document library after closing a PDF opened via Quick Links.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Managing a SharePoint intranet site where Quick Links are used to provide view-only users access to PDF files.
- Observed behavior
- When users close the PDF, SharePoint automatically returns them to the underlying document library instead of the home page, exposing the library interface. A custom URL workaround only functions for users with admin permissions.
Review your current SharePoint site permission levels and avoid making broad changes to document library access until an alternative navigation model has been fully tested.
Use Custom SharePoint Development for Redirection
Since SharePoint Online lacks a native setting for this redirect, custom development is the safest way to maintain your permission model without exposing the document library.
SharePoint Online's default behavior routes users back to the source library when a file is closed. Modifying URLs manually often requires administrator privileges, which prevents view-only users from successfully using alternative links.
Keep your existing view-only permissions intact for the document library to prevent unauthorized access or accidental edits.
Work with a SharePoint developer to create a custom SPFx (SharePoint Framework) web part or extension that intercepts the document 'close' action and forces a redirect to the home page URL.
Post your specific site architecture in Microsoft Q&A to get advanced script-based solutions or alternative architecture suggestions from SharePoint development experts.

Embed the PDF on a Standard Site Page (Workaround)
Instead of linking directly to the PDF file, link your Quick Links to a standard SharePoint page that embeds the PDF. This keeps users within the site navigation structure.
Manage and Edit PDF Documents Effortlessly with WPS Office
While SharePoint handles intranet web navigation, preparing, securing, and editing your PDF files before uploading them is crucial. WPS Office is a lightweight, fully compatible alternative to Microsoft Office that provides powerful native PDF viewing and editing tools.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your device.
- 2. Edit your PDFs Locally: Launch WPS Office to open, annotate, or modify your PDF files before they are shared with view-only users.
- 3. Upload to SharePoint: Save your finalized documents and upload them directly to your SharePoint document library.

Frequently Asked Questions
Can I change the default close behavior of a PDF in SharePoint Online?
No, SharePoint Online does not currently offer an out-of-the-box setting to redirect users to a specific page when closing a document. It automatically defaults back to the host document library.
Why does my alternative redirect URL work for admins but not view-only users?
Alternative URLs or script-based redirects often require higher permission levels to execute scripts or access certain SharePoint site assets. This causes access denied errors when view-only users attempt to use the link.
How can I hide the document library from view-only users?
You can remove the document library from the site navigation menu. However, if users are directed there after closing a file, they will still be able to see the interface and any contents they have permission to view.
What is the best native workaround for linking PDFs on a SharePoint homepage?
Embedding the PDF using the 'File viewer' web part on a standard SharePoint Site Page is the most reliable workaround. You can then route your Quick Links to this site page instead of the raw document file.




