Fix to set provider locale properly after redirect