Skip to content

graphqlbackend: add new query repositoryRedirect

Created by: unknwon

This PR adds another GraphQL query repositoryRedirect and changes the web app to use this new query instead of the old repository.

  • The repository query now consistently returns null when the repository not found on the local server.
  • The repositoryRedirect query returns a redirect URL (if enabled in the site configuration) when the repository not found on the local server. Name of this new query up for debate, I chose current one because it's the most intuitive.

Fixes #5125 (closed).

Review Tips

The diff itself looks weird, might be easier to review if expand up and down to see the full method body.

Merge request reports

Loading