vanilla / addons

Official add-ons and tools for Vanilla Forums.
http://open.vanillaforums.com
108 stars 169 forks source link

[Backport] Remove the extra subcommunity folder from the JSConnect redirect. #824

Closed nervoustwit closed 4 years ago

nervoustwit commented 4 years ago

This PR will back port vanilla/addons#822

This commit https://github.com/vanilla/addons/commit/9f4e3eed21d1438f32a5ac2d307d669de787fe97 wrapped the redirect URL that we use to give users the State token before redirecting them to the authentication provider during JSConnect connections with the url() function which added the subfolder where it originated. Unfortunately we pass that URL through the same function later so that sub-communities wind up with double sub-community folders (ie.https://myformum.com/en/en/entry/jsconnect).

This PR will fix that.

Testing