Added relative path into copy url function