replace placeholder [link] with URL