[#7481] Add return_to to Unauthorized exception handling
[#7481] return_to might not be present (really just tests I think)