Handle URLs with query strings or fragments when building CSS.