Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #53671
Closed
Open
Issue created Nov 07, 2018 by Dmytro Zaporozhets (DZ)@dzaporozhets🌴Contributor

Redirect projects/:id to project page

Inspired by https://gitlab.com/gitlab-org/gitlab-ee/issues/8280.

When doing integrations or some sort of administrations you might know project id but not a project name. To make project discover easier I propose we add a route to redirect project ID to project page.

For example when user types https://gitlab.com/projects/13083 in the browser they will be redirected to https://gitlab.com/gitlab-org/gitlab-ce

This can be achieved by some simple code like

get 'projects/:id:' => 'projects#resolve'

def resolve
  project = Project.find(params[:id])
  
  redirect_to project
end
Assignee
Assign to
Time tracking