frontend: include the rest of URL paramters when handling renamed repositories
Created by: ggilmore
Fixes https://github.com/sourcegraph/sourcegraph/issues/2049
Previously when handling repository redirects, our API would only respond with the link to the base repository page and ignored all the other request parameters. This PR fixes that behavior through the use of handlerutil.RedirectToNewRepoName
:
Before:
github.com/foo/Bar@123456/-/blob/main.go -> github.com/foo/bar
After:
github.com/foo/Bar@123456/-/blob/main.go -> github.com/foo/bar@123456/-/blob/main.go