We have a set of publishing pages that are not correctly showing if/when the following flag is set to ON :
This is to do with the SEO and vanity URL’s stuff – but we want this “OFF”.
Looking at the field via the REST URL, you can see the default value. But, the field/column is actually a SEALED column, and so you can’t update it via the UI.
So – it’s some fancy PowerShell to force this value (after connecting to O365) :
#get the fields at the root site level $rootWeb = $clientContext.Web $fields = $rootWeb.Fields $clientContext.Load($fields) $clientContext.ExecuteQuery() #grab the field $fld = $fields.GetByInternalNameOrTitle("PublishingIsFurlPage") $clientContext.Load($fld) $clientContext.ExecuteQuery() $fld $fld.DefaultValue = $false $fld.Update() $clientContext.ExecuteQuery() $rootWeb.Update() $clientContext.ExecuteQuery()
After running this PowerShell, the field is SET when viewing the column via REST :
And now, when users create a page – regardless of PAGE LAYOUT – this value will be ticked to OFF by default – and standard URL’s will be used – too easy.
The main issue we had was with a Content Search WebPart that was NOT showing the pages that had the checkbox ON. We needed users to make sure to set it off – making it DEFAULT to off was the best option.