• Resolved charltonit

    (@charltonit)


    Throughout the code you use

    $callBackUrl = get_site_url() . '/wp-json/wslu-social-login/type/' . $typeSocial;

    To generated the call back urls. Your doing it wrong – this will cause major errors on any site that doesnt use a very standard pretty urls (ie rewrite)

    You need to use

    get_rest_url(null,'/wslu-social-login/type/'.$typeSocial);

    You may need to pass the multisite blog id if the plugin supports multisite…

    This is why people get errors when configuring oAuth fallbacks. Your plugin is telling them the wrong rest url.

    • This topic was modified 1 year, 5 months ago by charltonit.
    • This topic was modified 1 year, 5 months ago by charltonit.
Viewing 1 replies (of 1 total)
  • Plugin Support Md Abdullah Al Arif

    (@faithcoder)

    Hi @charltonit,

    Appreciate your time and effort for the great suggestion. We will check the issue on our end, if everything goes well, we will update the plugin respectively.

    Thanks a million.

Viewing 1 replies (of 1 total)
  • The topic ‘Rest Urls are being incorrectly generated’ is closed to new replies.