When the wiki is a project's default landing page, it does not display any right hand sidebar when visiting it as a landing page

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

If we think in terms of someones first time encounter of a “wiki only” or “wiki primary” project, not having the navigation bar is a massive issue because the only reason for the content creator to undertake the effort to create a custom one is to enhance the discoverability - something that is most important on first time ever encountering of an informational resource.

Any information first project also really needs the default right sidebar to display when showing the project landing page as well for the same reasons.

Steps to reproduce

  • Create a project with all features disabled but Wiki (ensures the wiki will be the default project landing page).
  • Create a multipage wiki.
  • Create a custom side bar (for emphasis do this without putting links to subpages in the "home" page of the wiki)
  • Visit the project landing page - the sidebar is not displayed and subpages are unknown and inaccessible from this view which effects discoverability of the information oriented project.

Example Project

What is the current bug behavior?

No right hand wiki navigation bar shows.

What is the expected correct behavior?

Right hand wiki navigation bar should especially show in project landing pages when the wiki is the default page.

Relevant logs and/or screenshots

Screenshot of Wiki as Landing Page

image

Screenshot of Wiki View of Same Project

image

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Possible fixes

This is a work around, not a fix. I have added a link at the top of the home page called "Display Right Side Table of Contents" with a link to the projecturl/-/wikis/home

Edited by 🤖 GitLab Bot 🤖