Handle redirects correctly when using 'path.back' session var