I know it's not part of the commit, however I'm not too happy with this line. It's pretty naive. How does the URL look like?