How to get edit link from the beginning?