SharePoint Document Issues

Fix SharePoint Image Web Part Redirecting Document Links with web=1

Huma Ashraf ChHuma Ashraf Ch Nov 13, 2026 868 views

Question details

The user needs to stop a SharePoint Image web part document link from redirecting to the document library when the URL contains ?web=1.

Product
Microsoft SharePoint
Device & OS
not provided
Scenario
A document link placed in a SharePoint Image web part is clicked, and the expected behavior is for the document to open in the browser.
Observed behavior
The link redirects to the Site Assets or document library page instead of opening the document because the URL contains ?web=1.
Before you start

Open the SharePoint page that contains the Image web part, select the image or link, and copy the current document URL. Check whether the URL includes the ?web=1 query parameter before making changes.

Solution 1Recommended

Remove the ?web=1 parameter from the SharePoint document URL

Use this when a SharePoint Image web part link opens the Site Assets or document library page instead of the target document.

The ?web=1 query parameter is used by SharePoint for web part page context, but it can interfere with document links that should open directly in the browser. Removing it from the pasted document URL usually resolves the redirect.

1
Open the SharePoint page in edit mode

Go to the page that contains the Image web part, select the Page tab or Edit button, and click the Image web part to open its property pane.

2
Locate the document link field

In the Image web part property pane, find the Link field or address field where the document URL is stored, then copy the full URL to a text editor.

3
Delete the ?web=1 query parameter

Remove ?web=1 and any immediately following parameters from the URL. Keep the main document path, for example https://contoso.sharepoint.com/sites/team/Documents/file.docx.

4
Save and test the link

Paste the updated URL back into the web part link field, save or republish the page, then select the image to confirm the document opens in the browser.

Use Copy link next time: Microsoft recommends using the SharePoint Copy link option instead of copying the browser address bar URL to avoid the ?web=1 parameter.
Free Microsoft Office alternative

Use WPS Office as a Free Alternative for Opening and Editing SharePoint Documents

When SharePoint Image web part links get in the way, WPS Office gives you a free, lightweight, familiar Office alternative that opens, edits, and saves Microsoft Office documents with full format compatibility. Download WPS Office and work with Word, Excel, and PowerPoint files without being tied to SharePoint link quirks.

  1. 1. Download WPS Office Free: Go to the WPS Office download page and click Download WPS Office Free.
  2. 2. Open your document from SharePoint: Download the document from SharePoint or open it from your local folder, then launch WPS Office and use File > Open.
  3. 3. Edit and save in Microsoft-compatible format: Work with the file in Writer, Spreadsheet, or Presentation, and save it as .docx, .xlsx, or .pptx when needed.
Free, lightweight Office suite for opening documents from SharePoint without using the Image web part link workaround.Full compatibility with Microsoft Office .docx, .xlsx, and .pptx formats.Familiar ribbon interface for easy migration from Microsoft Office.Supports viewing and editing downloaded SharePoint documents offline.
QA img-9

Frequently Asked Questions

Why does my SharePoint Image web part link open Site Assets instead of the document?

The URL likely contains the ?web=1 query parameter. SharePoint treats this as a web part page context parameter, so the link can resolve to the library page instead of the file. Remove ?web=1 from the document URL to open the file directly.

How do I remove the ?web=1 parameter from an existing Image web part link?

Edit the SharePoint page, open the Image web part property pane, copy the current link, delete ?web=1 and any related query string, paste the cleaned URL back into the link field, and save the page.

What is the best way to copy a SharePoint document link without getting ?web=1?

Use the Copy link option from the document library command bar or file menu instead of copying the browser address bar URL. This creates a cleaner link that is less likely to redirect.

Can WPS Office open documents that I download from SharePoint?

Yes. WPS Office supports Word, Excel, and PowerPoint files in their Microsoft Office formats, so you can open and edit downloaded SharePoint documents without using the SharePoint web part link.