SharePoint Document Issues

How to Change Where SharePoint Sends Users After Closing a File

Elise WilliamsElise Williams Nov 3, 2026 869 views

Question details

Users need to know how to prevent SharePoint from redirecting them to the document library's default or All Items view after they close a file in the browser viewer.

How to Change Where SharePoint Sends Users After Closing a File
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Opening a file via a quick link or web part in the SharePoint browser viewer and subsequently closing the file.
Observed behavior
Instead of returning to the original referring page, the browser redirects the user to the root document library's default view.
Before you start

Note that this redirect behavior is currently Microsoft's default design for files opened in the same browser tab. Determine whether your users are accessing the files via a quick link, document library, or web part before applying workarounds.

Solution 1Recommended

Use "Open in New Tab" to Preserve the Original Page

The easiest way to prevent losing your place on a SharePoint site is to open the document in a new browser tab.

Because SharePoint's default behavior drops the user back to the library's root view when closing a same-tab browser viewer, using a new tab isolates the document session from your site navigation.

1
Locate the file link

Find the quick link, web part link, or document library item you want to view.

2
Open in a new tab

Right-click the link and select "Open link in new tab" from your browser's context menu. Alternatively, press the middle mouse button (scroll wheel) on the link.

3
Close the document tab

Once you are finished viewing or editing the document, close the newly opened browser tab. Your original SharePoint page will still be open and undisturbed in the previous tab.

Use "Open in New Tab" to Preserve the Original Page
Training Users: Educating your team to use middle-click or right-click to open documents is currently the most effective immediate workaround for this design limitation.
Free Microsoft Office alternative

Upgrade Your Document Workflow with WPS Office

If you are frustrated by unpredictable browser viewer behaviors and web-based limitations in SharePoint, consider managing and editing your downloaded documents with WPS Office. It provides a seamless, lightweight desktop experience without unexpected redirects.

  1. 1. Download and Install: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Set as Default Application: During or after installation, set WPS Office as your default application for opening .docx, .xlsx, and .pptx files.
  3. 3. Edit Documents Seamlessly: Download your files from SharePoint and open them directly in WPS Office for a stable, tabbed desktop editing experience.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight desktop application that avoids browser redirect frustrations.Familiar tabbed user interface for managing multiple documents in one window.Free to download and use with comprehensive built-in PDF editing tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why does SharePoint redirect to 'All Items' after I close a document?

This is Microsoft's current default design. When a document is opened via the browser viewer in the same tab, closing the viewer drops the user back to the root of the hosting document library (often the 'All Items' view) rather than remembering the exact referring page.

Can I change the default closing redirect URL in SharePoint settings?

No, there is currently no built-in SharePoint setting to customize the post-close redirect URL for the browser viewer. Users must rely on workarounds like opening links in new tabs or forcing files to open in desktop apps.

Does this redirect happen if I use a preview pane instead of fully opening the file?

Generally, no. Previewing a file within the document library usually keeps you on the same page. Closing the preview pane simply hides the preview, leaving your current library view intact.

How do I stop SharePoint quick links from opening files in the same tab?

While site editors cannot always force quick links to open in a new tab due to modern SharePoint limitations, users can manually right-click the link and choose 'Open in new tab' to bypass the default same-tab behavior.