SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have site created from web template. The link site pages is redirectinjg to home page but not to the site pages library. i can navigate to library but typing url directly. Please suggest why this is happening

share|improve this question
See also… – Rawling Aug 23 '11 at 11:41

Its because the Home.aspx (may be another page in your case) is set as a welcome page for the library root folder. Below should fix it

$web = Get-SPWeb "http://site"
$list = $web.Lists["Site Pages"]
$rootfolder = $list.RootFolder
$rootfolder.WelcomePage = "Forms/AllPages.aspx"
Write-Host $list.RootFolder.WelcomePage
share|improve this answer

The site you have used for creating web template, has the hard coded navigation url for Site Pages Library. So on top-level site, remove the hard coded navigation URL's and then create a Web Template. After that you can create a Site from the Template.

share|improve this answer

I don't know why, but you can goto "Site Actions-->Site Settings-->Look and Feel-->Navigation-->Navigation Editing and Sorting" to correct it, change the link's url to the right one. If you can't find the "Navigation" setting, please enable the "SharePoint Server Publishing Infrastructure" in your "Site collection features".

share|improve this answer

Goto Site Actions >> Site Settings >> Quick Launch, Delete Existing Site Pages, Click New Navigation Link, and add Url of Home page, Type Name 'Site Pages' in Description.

share|improve this answer
hi Viraj, You can do it without deleting Pages from SitePages. You should suggest a proper way for this not to delete Pages. I hope you can understand. – Torque Oct 17 '12 at 12:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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