Correctly distinguish absolute URLs from paths