Commit 77a1565c authored by Connor Shea's avatar Connor Shea

Replace `link_to_gfm` with `link_to` in merge request and issue titles.

Previously if an issue had an emoji for its name it would be unclickable. Similarly, links were rendered inline if the title was something like “Fixes a bug with https://google.com”. This confused some users, so it’s removed.

On the issue/MR page itself, the formatting is preserved. This only effects index pages.

This is also ever so slightly more performant :)

This fixes #17614 and #17230.
parent a9b431c5
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.issue-title.title .issue-title.title
%span.issue-title-text %span.issue-title-text
= confidential_icon(issue) = confidential_icon(issue)
= link_to_gfm issue.title, issue_path(issue) = link_to issue.title, issue_path(issue)
%ul.controls %ul.controls
- if issue.closed? - if issue.closed?
%li %li
......
%li{ class: mr_css_classes(merge_request) } %li{ class: mr_css_classes(merge_request) }
.merge-request-title.title .merge-request-title.title
%span.merge-request-title-text %span.merge-request-title-text
= link_to_gfm merge_request.title, merge_request_path(merge_request) = link_to merge_request.title, merge_request_path(merge_request)
%ul.controls %ul.controls
- if merge_request.merged? - if merge_request.merged?
%li %li
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment