integrated repository id into all links; added redirection if repository id is not valid