Support » Plugin: WordPress Social Login » Change to address root relative URLs

  • In case anyone else is using root relative URLs.

    If you are using root relative URLs you need to make a change to the plugin. In particular, Line 72 of authenticate.php should be changed from:

    $config["base_url"] = plugins_url() . '/' . basename( dirname( __FILE__ ) ) . '/hybridauth/';


    $config["base_url"] = site_url() . plugins_url() . '/' . basename( dirname( __FILE__ ) ) . '/hybridauth/';

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Miled


    Could you please explain what “root relative URLs” mean? is it an issue with WSL itself or a conflict with another plugin?


    Not a plugin. There are a number if ways to strip the from all URLs in wordpress which makes it easier to have development, testing and production environments.

    There are some plugins. I wrote my own code.

    Regardless, when one does this, all wordpress API calls that normally return return /rest/of/url

    This is great 99 percent of the time. Just not when you are trying to get a url for external systems…such as social auth redirection and endpoints.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change to address root relative URLs’ is closed to new replies.