fix a small bug in the webapp redirections