Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

wiki: _sidebar markdown code cannot be viewed at _sidebar.md if _sidebar.md already exists as another page

gitlab-ce~2278648

Summary

When you have a wiki page titled _sidebar and another one titled _sidebar.md you cannot add .md to the first page to see it's markdown code (because the second page is displayed).

steps to reproduce

I only know the end result, as it wasn't myself who created this situation. So I can only speculate, but my guess is that what happened was this:

  1. create _sidebar.md
  2. create _sidebar (or possibly steps 1 and 2 in reverse order)

example project

https://gitlab.com/CardBook/CardBook/wikis/home

current behavior

you can see the markdown code of _sidebar.md at _sidebar.md.md
but you cannot see the markdown code of _sidebar at _sidebar.md (because you see its page content obviously)

expected behavior

The current behaviour is kind of obvious and possibly even the expected behaviour, but ... (see below)

possible fixes

  • either the page shouldn't be allowed to be created in the first place
  • OR there should be another way to display the markdown code in such a case of conflicting page names

output of checks

This bug happens on GitLab.com

Edited Sep 02, 2020 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading