SharePoint Document Issues

How to Stop a SharePoint Online Group Site from Redirecting

Jason MillerJason Miller Oct 29, 2026 869 views

Question details

A user needs to stop a specific SharePoint Online site from automatically redirecting to another page.

How to Stop a SharePoint Online Group Site from Redirecting
Product
SharePoint Online
Device & OS
not provided
Scenario
Accessing a SharePoint Online site created with the Group#0 template.
Observed behavior
The site automatically redirects to another site via spfxsinglesignon.aspx, while other sites using the same template do not exhibit this behavior.
Before you start

Ensure you have site administrator permissions for the affected SharePoint Online site and access to the Microsoft 365 admin center if backend support is required.

Solution 1Recommended

Inspect the Site using the Web Part Maintenance Page

Use the web part maintenance query parameter to check if a hidden script or custom web part is causing the unauthorized redirect.

Sometimes, a user or developer might add a Content Editor Web Part or Script Editor containing JavaScript that forces a page redirect. Because the redirect happens automatically, you cannot edit the page normally to remove the offending code. The Web Part Maintenance Page allows you to bypass the rendering of these web parts.

1
Open the Web Part Maintenance Page

Navigate to the affected SharePoint site URL and append '?contents=1' to the end of the web address (e.g., https://abc.sharepoint.com/sites/sitename?contents=1) and press Enter.

2
Identify Suspicious Web Parts

Review the list of web parts associated with the page. Look specifically for 'Content Editor Web Part', 'Script Editor', or any unrecognized custom components.

3
Remove the Redirecting Component

Select the checkbox next to the suspicious web part and click 'Close' or 'Delete' to remove it from the page, which should stop the automatic redirect.

Inspect the Site using the Web Part Maintenance Page
Free Microsoft Office alternative

Manage Your Documents Seamlessly with WPS Office

While SharePoint handles complex enterprise web deployments, WPS Office provides a lightweight, highly compatible, and free alternative for managing, editing, and collaborating on office files without the hassle of unexpected web redirects or complex backend configurations.

  1. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install the Application: Run the downloaded installer and follow the simple on-screen instructions to complete the setup.
  3. 3. Open and Edit Documents: Launch WPS Office to easily open, edit, and save your existing Microsoft Office files with full format compatibility.
Free and lightweight office suite for seamless productivityFully compatible with Microsoft Word, Excel, and PowerPoint formatsNo complex web configurations, script errors, or redirect issuesBuilt-in cloud storage for easy file sharing and reliable collaboration
QA img-9

Frequently Asked Questions

Why does my SharePoint site redirect to spfxsinglesignon.aspx?

This specific redirect is typically related to Single Sign-On (SSO) authentication loops or a misconfigured SharePoint Framework (SPFx) web part that is continuously attempting to authenticate a user in the background.

What does ?contents=1 do in SharePoint?

Appending ?contents=1 to a SharePoint page URL opens the Web Part Maintenance Page. This special view allows site administrators to view, close, or delete web parts that might be broken, hidden, or causing the page to malfunction.

Can the Group#0 template inherently cause redirects?

No, the Group#0 template (which corresponds to a Modern Team Site) does not natively force redirects. If only one site out of several using this template is affected, it is almost certainly a site-specific configuration, a rogue web part, or an SSO script issue.