Wrong link of Wiki title search result

First... I'm not good at English. so i use translate site. Please excuse :(

Summary

I searched the sub directory wiki page as the title, in the upper right navigation textBox.
and i entered that result sub directory wiki page.
But it link to root directory wiki page(Same file name).

Steps to reproduce

  1. Create wiki page in subDir

    • title : subDir/Search1
    • Content : it is in sub.
  2. find wiki in the upper right navigation textBox.

    • in textBox : Search1
  3. enter result wiki page : subDir/Search1

  4. Create (Same file name) wiki page in root directory

    • title : Search1
    • Content : it is in root.
  5. Repeat step 2.

  6. Repeat step 3.

Example Project

it will reproduced base setting project on GitLab.com . (My Project)

What is the current bug behavior?

step '3.' and '6.' result
: link to root directory page. (only title search result.)

What is the expected correct behavior?

step '3.' and '6.' : link to sub directory page

Relevant logs and/or screenshots

SearchToWikiBug

Output of checks

This bug happens on GitLab.com

Edited by 최영헌