Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Redirect loop when changing locales

This discussion is related to the Multilingual addon.
R_JR_J Cheerleader & TroubleshooterMunich Moderator

I seem to have changed my locale setting here by accident. When trying to set it back, I got a "The page isn't redirecting properly" error.

Based on the code of the plugin, I would say it tries to redirect the user to the HTTP_REFERER

        $successRedirect = $_SERVER['HTTP_REFERER'];
        $target = gdn::request()->get('Target');
        if ($target) {
           $successRedirect = $target;
        // Back from whence we came.

But looking at the request, the REFERER is "" and that's why the request loops endlessly.


  • should use Target not HTTP_REFERER which can be set to anything.

    grep is your friend.

Sign In or Register to comment.