returns json and redirects to repo/{id}w