Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • See what's new at GitLab
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #53671

You need to sign in or sign up before continuing.
Closed
Open
Opened Nov 07, 2018 by Dmytro Zaporozhets (DZ)@dzaporozhets🔨Owner

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
Next 4-7 releases
Milestone
Next 4-7 releases
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab-foss#53671