cleanURL function

Returns the cleaned source URL.