Can you add a comment explaining this condition?

Also would it be better to just set `url = u.request_uri` rather than fork the whole line?