How to Change Where SharePoint Sends Users After Closing a File
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.

- 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.
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.
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.
Find the quick link, web part link, or document library item you want to view.
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.
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.

Configure Libraries to Open Files in the Desktop App
You can configure the document library to bypass the browser viewer entirely and open files directly in client applications.
Submit Product Feedback to Microsoft
Since the same-tab redirect is a built-in product behavior rather than a bug, submitting feedback is the official channel to request a design change.
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. Download and Install: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Set as Default Application: During or after installation, set WPS Office as your default application for opening .docx, .xlsx, and .pptx files.
- 3. Edit Documents Seamlessly: Download your files from SharePoint and open them directly in WPS Office for a stable, tabbed desktop editing experience.

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.




