changing the way redirect urls are transmitted when switching languages