The url's on our intranet are pretty, i.e. http://intranet/test, but we want to show full path of the page, like this http://intranet/test/default.aspx

I don't know why we get pretty url and have been trying to find out how to get back the old fashioned url's.

Any ideas how I can achieve that ?

1 Answer 1


There are a few things that control this in site settings --> navigation.

Managed Navigation -- use a term set for navigation

Add new pages to navigation automatically -- a new item is added to the termset for each new page

Create friendly URLs for new pages automatically -- This is what you're concerned about - the page shows up in the URL without the .aspx.

So, a couple options:

  1. disable the create friendly URLs for new pages - this will work, but only applies to new pages.

  2. Do the above, but also open the term store management tool, navigate to the term set for the current site collection (at the bottom on the left), drill down to the particular page (term) you want to change, and on the navigation tab switch it from a term-driven page to a simple link (repeat this step for every existing page)

  3. Change the navigation for both the top and current to structural instead of managed. (this is a separate option and can be done instead of the first two)

edit: to change this setting from powershell:

Add-PSSnapIn Microsoft.SharePoint.PowerShell

$web = get-spweb "http://someSharePointUrl"
$navSettings = New-Object Microsoft.SharePoint.Publishing.Navigation.WebNavigationSettings($web)

$navSettings.AddNewPagesToNavigation = $false
$navSettings.CreateFriendlyUrlsForNewPages = $false
  • Hi. Where can I find the setting for disabling friendly urls for new pages ?
    – Ilyas
    Apr 7, 2015 at 19:43
  • 1
    site settings --> navigation --> Create friendly URLs for new pages automatically (it's a checkbox about halfway down the page)
    – Mike2500
    Apr 7, 2015 at 19:45
  • If you got any powershell script for fixing that, please share :)
    – Ilyas
    Apr 7, 2015 at 19:50
  • 1
    For which option? deselecting the add new pages automatically? (how many sites do you have to do this to?)
    – Mike2500
    Apr 7, 2015 at 19:54
  • 1
    See the edit...
    – Mike2500
    Apr 7, 2015 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.