Since the @RequestMapping does not match periods by default, repository names containing one are not matched fully, resulting in incorrect redirect.
E.g http://glproxy/namespace/repo.name is redirected to http://gitlab/namespace/repo
If I'm not mistaken, this can be fixed by adding a custom pattern to the path variable (/{repo:.*})