URL resolution doesn't take into account current port. Close #12.