SharePoint Document Issues

Fix a Broken SharePoint Online Site Contents Library Link

Nimra MalikNimra Malik Nov 20, 2026 869 views

Question details

Repair a SharePoint Online library link on the Site Contents page that returns a 404 error.

Fix a Broken SharePoint Online Site Contents Library Link
Product
SharePoint Online
Device & OS
not provided
Scenario
The user can open a library through other navigation links but needs to access it from Site Contents.
Observed behavior
The Site Contents library link returns 404 Not Found, potentially because the library lacks a valid default view.
Before you start

Open the affected library using a working navigation link and check that you have permission to manage its views. If you cannot access the library settings or create a view, ask a site owner for help.

Solution 1Recommended

Create a valid default view for the SharePoint library

Use this fix when the library opens through another link but its Site Contents link points to a missing or invalid default view.

1
Open library settings

Open the library from a working navigation link, select Settings, and choose Library settings. If shown, select More library settings.

2
Create a view

Under Views, select Create view, choose a view type, and enter a name for the new view.

3
Set the default

On the view creation page, select Make this the default view, then select OK to save it.

4
Test the library link

Return to Site Contents and select the affected library. Confirm that it opens a valid view page under the library's Forms path.

View URLs can vary: A default view may use a URL such as /FormLibrary/Forms/AllItems.aspx, but a newly created view can have a different page name. Creating a view does not require deleting the library or its columns.
Free Microsoft Office alternative

Work with Office documents in WPS Office

WPS Office is a free, lightweight alternative for editing Office documents with a familiar interface and compatible file formats for an easier transition. It does not repair SharePoint Site Contents links.

Open and edit Word, Excel, and PowerPoint files in compatible formats.Work with documents downloaded from a SharePoint library.Use a familiar interface that makes switching from Microsoft Office easier.Access a free, lightweight office suite.
QA img-9

Frequently Asked Questions

Why does my library open from navigation but not from Site Contents?

The navigation link may point directly to a working page, while the Site Contents link relies on the library's default view. If that view is missing or invalid, the Site Contents link can return a 404.

Where can I set a library view as the default?

Open the library, select Settings > Library settings, and look under Views. Create a view and select Make this the default view before saving it.

Does the default view have to be named AllItems.aspx?

No. AllItems.aspx is a common view page, but a newly created default view can have a different page name. The important check is that the Site Contents link opens a valid view.

What if I cannot create or change a library view?

Ask a site owner or someone with permission to manage the library to open Library settings and create a default view. If the link still returns a 404 afterward, ask your SharePoint administrator to investigate.