WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Social Login
Change to address root relative URLs (3 posts)

  1. mitchell360
    Member
    Posted 1 year ago #

    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/';

    TO

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

    http://wordpress.org/extend/plugins/wordpress-social-login/

  2. Miled
    Member
    Plugin Author

    Posted 1 year ago #

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

    Thanks!

  3. mitchell360
    Member
    Posted 1 year ago #

    Not a plugin. There are a number if ways to strip the http://www.yourdomain.com 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 http://www.yourdomain.com/rest/of/URL 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic