Handle redirections to relative URLs correctly (see #282) + tests; minor GUI change