I put it here because the relative url is "invalidated" during the merging. But yes I'll create a separate method and call it from that place.