bugfix: allow subpath of client's url to redirect
bugfix: pass request object to ErrorException