Changed custom_canonicalize_pathname() function for handle URL:// style