• Hi, is there a way to make all links of posts https? At the moment all posts in the dropdown are listed as http and not https so it messes up the SEO and the caching data.

Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    The plugin requests the link URLs (including the protocols) from wordpress Core. I recommend checking your site configuration to make sure the base URL is set correctly with https:// as this is definitely coming from a configuration issue.

    You can force https urls via a custom code too, but I still recommend correcting the issue within the site configuration:

    add_filter(
    'asl_results',
    function ( $results ) {
    foreach ( $results as $r ) {
    $r->link = str_replace('https://', 'https://', $r->link);
    }
    return $results;
    },
    10,
    1
    );

    All the best,
    Ernest

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.