SP.Publishing.Navigation.WebNavigationSettings.createFriendlyUrlsForNewPages property (sp.publishing)
Gets or sets a value that indicates whether the New Page ribbon command will automatically create a friendly URL for the newly created page.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Publishing.Navigation.WebNavigationSettings.get_createFriendlyUrlsForNewPages()
SP.Publishing.Navigation.WebNavigationSettings.set_createFriendlyUrlsForNewPages(value)
Return value
true if a friendly URL will be created automatically for the newly created page; otherwise, false.