fix missing query string when redirect
include changing lang in sample