method to get the history url.