After our upgrade to 4.2, it appears that the custom navigation control we created is now displaying links for pages that aren't published and are not selected to show up in navigation. I don't know if there was some change to how the SiteMapDataSource looks at pages or what.
Here's the simple code for how we compile the list of pages:
SiteMapDataSource1.StartingNodeUrl = StartingUrl;
var currentNode = SiteMapBase.GetActualCurrentNode();
var selected = RadSiteMap1.Nodes.FindNodeByText(currentNode.Title);
You can see that the only thing we're doing here is adding the "active" CSS class so that we can achieve custom styling to indicate the current selected page. The ASCX page has no real customization:
Interestingly, our standard RadMenu does not show this page in its list. Any idea how I can get this unpublished page not to show up, short of deleting it?
You can see this in action by going to http://www.telephonypartners.com/about-us
. Note that there is a "Careers" link on the left sidebar, but not in the main horizontal site menu bar. Also note that if you click the careers link you get a 404 error (because the page is unpublished).