Web IDE doesn't open file at specified line number

MR: feat: Pass line number to WebIde component (gitlab!188173 - merged)

MR2: feat: Enable WebIde to navigate to line in project (!481)

Description

I am trying to create a link to the Web IDE that opens some file at a specific line number using #L2 at the end of URL. This functionality was implemented three years ago in gitlab!56159 (merged) (closing gitlab#21762 (closed)) for the Web IDE, file editor and pipeline editor. This feature was announce being released in 13.11.

But this seem to be working now only in the file editor. The Web IDE doesn't take this parameter into account when displaying the file. The pipeline editor also doesn't take this into account. And while it displays the "link" icon, this icon doesn't change the URL as it does in the file editor.

As a user, I want the Web IDE to open file at specific line number provided in the URL in the format of #L{line_number} so that I can create links that open files at specific line numbers in Web IDE.

Acceptance Criteria

  • Fix the regression
  • Update documentation if necessary
Edited by Joseph Fletcher