SharePoint / SharePoint/sp-dev-docs

SharePoint pageload suddenly breaks when using `List` and/or `RootFolder` querystrings

Open
#10,172 8 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since Mar 28, 2025.

sharepoint-developer-support type:bug-confirmed type:bug-suspected
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

not applicable

Developer environment

None

What browser(s) / client(s) have you tested
  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details
Describe the bug / error

I'm seeing very odd problems when loading pages today.

For example: I'm having a very basis empty page here:

Image

If I add the querystring ?List=43355f7d-c021-4317-9d05-92cece2a1553 (With some random GUID), the page loads badly:

Image

If I add the querystring ?List=someirrelevantvalue&RootFolder=/sites/hr, the page breaks with a message saying it cant find items.

Image

If I add the querystrings ?List=c71dde57-82e9-4210-b856-c5347e63f298&RootFolder=/sites/hr/documents which are referring to an actual document library on another site, the page crashes in another way: saying it cant get a property Title from an undefined object.

Image

This is all quite strange. It seems Microsoft has implemented some new behavior around these two query parameters. Or it's just one code path that now suddenly breaks.

But on our end this breaks a customer solution, because we use NewFormUrl's on content types to redirect to customized creation pages, on which these parameters are added by SharePoint and then the page breaks, blocking people from creating stuff.

Is there someone who recognises this? It's behavior across tenants.

Steps to reproduce

Just append ?List=<some-guid>&RootFolder=/sites/site-url to the URL of your page. (just after .aspx

Expected behavior

It should not crash...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.