save query parameters at redirect from wrong pages