Click here to Skip to main content
15,868,141 members
Articles / Productivity Apps and Services / Sharepoint

Removing All “_layouts/15/start.aspx#/” in Sharepoint URL

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
11 Mar 2016CPOL1 min read 13.1K  
Do you want to remove that ugly additional URL “_layouts/15/start.aspx#/” on your SharePoint web address?

Do you want to remove that ugly additional URL “_layouts/15/start.aspx#/” on your SharePoint web address? Before doing so, do you really need to do it? Do you even know what that URL means? Well, if you don’t, have a read here what it is for so you understand the impact of removing them. In a gist, it makes your pages load faster by processing only the differences (or delta) between the current page and the requested page.

Now that you know and might have valid reasons on why you want to remove them, go ahead and start doing so.

You can disable the feature by going to Site Settings -> Manage Site Features and disable the Minimal Download Strategy Feature.

Image 1

Image 2

Image 3

You can also do it in PowerShell by using the command below:

PowerShell
Enable-SPFeature -Identity "87294c72-f260-42f3-a41b-981a2ffce37a" 
-url "http://www.yoursharepoint.com" -Force -Confirm:$False

That ugly GUID after the identity is the Id for the MDSFeature.

But take note that both steps will disable the feature only on the site you are in, you will have to do this on all SubSites and SiteCollections, so to make your life easier, I made a script to do that on all SubSites and SiteCollections and here is how it goes.

PowerShell
$sharepointServer = "http://www.yoursharepoint.com"
$webApplication = Get-SPWebApplication -Identity $sharepointServer
$sharepointFeature = "87294c72-f260-42f3-a41b-981a2ffce37a"
$siteCollection = $webApplication | Get-SPSite -limit all 
 
foreach ($site in $siteCollection)
{
    $webs = $site | Get-SPweb -limit all
    foreach ($web in $webs)
        {
            $url = $web.URL
            Write-Host "Disabling Feature in URL = " $url -foregroundcolor "WHITE"
            Enable-SPFeature -Identity $sharepointFeature -url $url -Force -Confirm:$False
        }
}

Save the codes as Deactivate.ps1 and run it on SharePoints powershell:

Image 4

You might see some errors like the one above, don’t worry about it because it means that the feature on that site was already disabled, meaning not activated. For activated ones, it will deactivate it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
New Zealand New Zealand
http://nz.linkedin.com/in/macaalay
http://macaalay.com/

Comments and Discussions

 
-- There are no messages in this forum --