only overwrite links in session if they are not defined