Getting the correct link on the button