Requirement: Change the List or Document Library URL in SharePoint.
Another interesting question, How to change the URL of the existing List or Library in SharePoint? End-user named a document library “2011 Goals & Results”, and in the URL, it came as “2011%20Goals%20%20Results”, Now they made a request to special characters in the URL.
How to change the URL of a SharePoint List or Library?
Unfortunately, there is no direct way/interface from SharePoint to do that. However, these tricks will help you! Thought of Sharing. Changing the URL of a SharePoint list or library is a relatively simple process that can be completed in a few easy steps. Here are the options:
- Use Explorer View
- Use SharePoint Designer
- Using PowerShell to Change the URL of a SharePoint List or Library
Option#1: Use Explorer View to rename SharePoint list URL
Open the site in Explorer view, Rename the List/Library as you rename it in your local Windows machine’s explorer view! This renames the list web address also.
Option#2: Using SharePoint Designer to Rename list URL
Open the site with SharePoint Designer, All Files, Right-click the Library, and choose “Rename”
Nice trick, Isn’t it? 🙂
Option #3: PowerShell script to rename SharePoint List URL
Here is the PowerShell way to change the SharePoint List URL:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Web URL where the target list lives $WebURL = "https://sharepoint.crescent.com" #List Name $ListName = "ExternalProjects" #Get the Web List and Library objects $web = Get-SPWeb $WebURL $List = $web.Lists[$ListName] #Change the URL from "ExternalProjects" to "Projects" $List.RootFolder.MoveTo("Projects")
In summary, changing the URL of a SharePoint list or library is a relatively simple process that can be completed in a few easy steps. All it takes is a few clicks, and the new URL is ready to be used. However, it is important to remember that changing the URL of a list or library may cause some broken links.
The above methods, #1 & #2, work for SharePoint Online as well. For the PowerShell approach, use: How to change the List URL in SharePoint Online using PowerShell?