SharePoint Document Issues

How to Return to SharePoint Home Page from PDF Quick Links

Khadija KhanKhadija Khan Oct 19, 2026 869 views

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.

How to Return to the SharePoint Online Home Page from a PDF Quick Link
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.
Before you start

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.

Solution 1Recommended

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.

1
Maintain Current Permissions

Keep your existing view-only permissions intact for the document library to prevent unauthorized access or accidental edits.

2
Consult SharePoint Developers

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.

3
Seek Community Guidance

Post your specific site architecture in Microsoft Q&A to get advanced script-based solutions or alternative architecture suggestions from SharePoint development experts.

Use Custom SharePoint Development for Redirection
System Limitation: There is no out-of-the-box setting in SharePoint Online to change the default close behavior or destination for PDF files.
Free Microsoft Office alternative

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. 1. Download and Install: Get the free WPS Office suite from the official website and install it on your device.
  2. 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. 3. Upload to SharePoint: Save your finalized documents and upload them directly to your SharePoint document library.
Seamlessly edit, merge, split, and compress PDF documents before uploading to SharePoint.High compatibility with all standard Microsoft Office file formats (Word, Excel, PowerPoint).Free, lightweight, and features a familiar user interface for immediate productivity without a steep learning curve.
microsoft office alternative - wps office

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.