Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 sharepoint.stackexchange.com/questions/11640/… –  Rawling Aug 23 '11 at 11:41
add comment

4 Answers 4

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
add comment

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"
$rootfolder.Update()
Write-Host $list.RootFolder.WelcomePage
$web.Dispose()
share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.