Skip to content

Fix broken "View List" button in Lists report - #153

Closed
Gunjan Datta (gudatta) with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-150
Closed

Fix broken "View List" button in Lists report#153
Gunjan Datta (gudatta) with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-150

Conversation

Copilot AI commented Aug 21, 2025

Copy link
Copy Markdown
Contributor

The "View List" button in the Lists report was constructing an invalid URL that prevented users from opening lists and libraries. The issue was in the URL construction logic that incorrectly combined ListViewUrl (which is for viewing individual items) with ListUrl as a query parameter.

Problem:

// Incorrect URL construction
window.open(item.ListViewUrl + "?ID=" + item.ListUrl, "_blank");

This created malformed URLs like:
https://tenant.sharepoint.com/sites/site/_layouts/15/DispForm.aspx?ID=/sites/site/Lists/MyList

Solution:

// Correct URL construction  
window.open(item.WebUrl + item.ListUrl, "_blank");

This now creates proper SharePoint list URLs like:
https://tenant.sharepoint.com/sites/site/Lists/MyList

The fix ensures that clicking "View List" correctly opens the list or library in a new tab, restoring the expected functionality for users of the site administration tool.

Fixes #150.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@gudatta
Gunjan Datta (gudatta) deleted the copilot/fix-150 branch August 21, 2025 00:14
Copilot AI restored the copilot/fix-150 branch August 21, 2025 00:14
Copilot AI changed the title [WIP] View List - Broken Fix broken "View List" button in Lists report Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

View List - Broken

2 participants