exclude hidden pages by default
This commit is contained in:
		| @ -48,7 +48,7 @@ namespace Oqtane.Pages | ||||
|             var pageModules = _pageModules.GetPageModules(_alias.SiteId); | ||||
|             foreach (var page in _pages.GetPages(_alias.SiteId)) | ||||
|             { | ||||
|                 if (_userPermissions.IsAuthorized(null, PermissionNames.View, page.PermissionList)) | ||||
|                 if (_userPermissions.IsAuthorized(null, PermissionNames.View, page.PermissionList) && page.IsNavigation) | ||||
|                 { | ||||
|                     sitemap.Add(new Sitemap { Url = _alias.Protocol + _alias.Name + Utilities.NavigateUrl(_alias.Path, page.Path, ""), ModifiedOn = page.ModifiedOn }); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker