The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Thank you for reaching out.
First, I’d like to clarify that this is a user‑to‑user support forum. Moderators participating here do not have access to backend systems, nor can we directly intervene in Microsoft product functionality. Our role is limited to providing technical guidance and sharing best‑practice recommendations based on reported issues, requests, and scenarios.
Based on your description, looks like the issue is related to how SharePoint Online resolves Document Set links from search results. As far as I know, instead of linking to the specific Document Set item, search may resolve to the underlying document set welcome page (docsethomepage.aspx). When this happens, the URL may not carry the correct item context (ID), resulting in the same record being loaded regardless of the selected search result.
You can refer via: Create and manage Document Sets - Microsoft Support
Additionally, this behavior may appear after migration from on-premises, where Document Set URLs may not be indexed correctly. Direct navigation from the library works because it uses modern routing and resolves the correct item context.
Please note that this summary is based on my own findings and may not fully address your concerns. To help you reach your goal more effectively, I recommend engaging with [GitHub Community Forum] for a deeper technical dive or to connect with individuals who have relevant experience and expertise. Some approaches may behave differently or be restricted depending on your specific environment and configuration. These forums include many experienced developers and Microsoft specialists who can assist with troubleshooting and guidance.
I hope this helps.
Please feel free to correct me if I misunderstood your request. If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.