fix url used when providing link