Redirect loop when changing locales
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.
safeRedirect($successRedirect);
But looking at the request, the REFERER is "https://vanillaforums.org/profile/setlocale/en/MyTransientKey" and that's why the request loops endlessly.
0

Comments
should use Target not
HTTP_REFERERwhich can be set to anything.grep is your friend.