prevent 404 by stripping out everything after the repo name in the url