Proper detection of SVG files in the URL