Atleast in 1.2 currently there is at admin/config/search/xmlsitemap/settings "Advanced Settings" > "Default base URL" which solved in my case
This can actually be solved easily by implementing the following hook.
/**
* Implements hook_xmlsitemap_context_url_options_alter().
*/
function MYMODULE_xmlsitemap_context_url_options_alter(array &$options, array $context) {
$options['https'] = TRUE;
}
But to let this be environment-specific I think it's actually better to be able to set that in settings(.local).php
.
Set $settings['xmlsitemap_url_options_https'] = TRUE;
to enforce HTTPS for all languages.
Set $settings['xmlsitemap_url_options_https']['es'] = TRUE;
to enforce HTTPS only for Spanish links.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Atleast in 1.2 currently there is at admin/config/search/xmlsitemap/settings "Advanced Settings" > "Default base URL" which solved in my case