Redirect after setting a new locale

If the "locale" parameter is present, redirect back to the current page,
removing the param.

Closes #1800.