fix(gitbrowse): fixed urls for gitlab (#2073)

## Description

GitLab highlighting uses a different scheme for range of lines

fb2f3ce787/app/assets/javascripts/repository/mixins/highlight_mixin.js (L114)

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->
This commit is contained in:
Alexander Frolov 2025-10-20 15:15:21 +02:00 committed by GitHub
parent fb54927ab0
commit 9ebf052fef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -79,8 +79,8 @@ Open the repo of the active file in the browser (e.g., GitHub)
},
["gitlab%.com"] = {
branch = "/-/tree/{branch}",
file = "/-/blob/{branch}/{file}#L{line_start}-L{line_end}",
permalink = "/-/blob/{commit}/{file}#L{line_start}-L{line_end}",
file = "/-/blob/{branch}/{file}#L{line_start}-{line_end}",
permalink = "/-/blob/{commit}/{file}#L{line_start}-{line_end}",
commit = "/-/commit/{commit}",
},
["bitbucket%.org"] = {

View file

@ -67,8 +67,8 @@ Open the repo of the active file in the browser (e.g., GitHub)
},
["gitlab%.com"] = {
branch = "/-/tree/{branch}",
file = "/-/blob/{branch}/{file}#L{line_start}-L{line_end}",
permalink = "/-/blob/{commit}/{file}#L{line_start}-L{line_end}",
file = "/-/blob/{branch}/{file}#L{line_start}-{line_end}",
permalink = "/-/blob/{commit}/{file}#L{line_start}-{line_end}",
commit = "/-/commit/{commit}",
},
["bitbucket%.org"] = {

View file

@ -56,8 +56,8 @@ local defaults = {
},
["gitlab%.com"] = {
branch = "/-/tree/{branch}",
file = "/-/blob/{branch}/{file}#L{line_start}-L{line_end}",
permalink = "/-/blob/{commit}/{file}#L{line_start}-L{line_end}",
file = "/-/blob/{branch}/{file}#L{line_start}-{line_end}",
permalink = "/-/blob/{commit}/{file}#L{line_start}-{line_end}",
commit = "/-/commit/{commit}",
},
["bitbucket%.org"] = {