make trailing slash optional for repo page