Fix a Broken SharePoint Online Site Contents Library Link
Question details
Repair a SharePoint Online library link on the Site Contents page that returns a 404 error.

- 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.
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.
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.
Open the library from a working navigation link, select Settings, and choose Library settings. If shown, select More library settings.
Under Views, select Create view, choose a view type, and enter a name for the new view.
On the view creation page, select Make this the default view, then select OK to save it.
Return to Site Contents and select the affected library. Confirm that it opens a valid view page under the library's Forms path.
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.

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.




