Links print style enhancement
Summary
When printing a GitLab page (for instance a MR or an issue), links (like user names, references to issues and MR, or labels like Bug and frequently duplicated) are printed with the complete URL next to it.
Steps to reproduce
Open an issue (for example this issue) and print it in your browser. All links appear with the complete URL next to it. The screenshot below was taken on Firefox 51.0 64bit on Debian 8.7.
Expected behavior
It's not useful to have all of these URLs printed. Only external links should have the complete URL next to them.
Possible fixes
- First, change the current behavior for internal links that are pasted in markdown areas to render relative instead of absolute. For example, if I paste
https://gitlab.com/gitlab-org/gitlab-ce/issues/27466
in a comment:- instead of the current render:
[#27466](https://gitlab.com/gitlab-org/gitlab-ce/issues/27466)
- render the link as:
[#27466](/gitlab-org/gitlab-ce/issues/27466)
- instead of the current render:
- Then, using CSS, change Bootstrap's print styles for links. Instead of all links, target only link URLs that start with
http://
orhttps://
(links external to the GitLab instance) using this technique.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com