Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !5752

Merged
Created Dec 03, 2013 by Administrator@rootOwner

Fix 404 on project page for unauthenticated user

  • Overview 8
  • Commits 1
  • Changes 7

Created by: ghost

Eliminate a 404 error when user is not logged in and attempts to visit a project page.

The 404 page will still show up when user is logged in and the project doesn’t exist or the user doesn’t have access.

This is useful if someone sends you a link and you don't happen to be signed in. It will redirect to the sign in page rather than just presenting a 404 right away. If you login and still don't have access, you will then see the 404.

This takes into account the fact that the project doesn't exist, so a non-existent project is treated the same as a project that does exist. So, no one can use 404 vs redirect to determine which projects exist on the server.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/no-404-for-project