Relative-directory links in the Markdown file are copied incorrectly in a case

Describe your question in as much detail as possible:
This file on gitlab.com has the following markdown code:

- [About](./about.md)  

It is a relative-directory link.

How to reproduce this problem:

  • Access the rendered page of this file
  • Select text “About” which has a hyperlink.
  • Press keyboard keys Ctrl+C.
  • Open a local file(say it F) of MSOffice Word or LibreOffice Writer, then press keyboard keys Ctrl+V in file F. Then, text “About” with a hyperlink is pasted into file F.
  • Select text “About” in local file F, and check its hyperlink(say it HL0). The hyperlink HL0 is: file:///city4cat/myblogs/-/blob/master/hojocn/zz_sweeper-office_cn/about.md. HL0 DOES NOT contain string “https://gitlab.com/”.

This problem is reproduced in Chromium(Version 112.0.5615.49) and Firefox(111.0.1) on Ubuntu(20.04.5 LTS).

What are you seeing, and how does it differ from what you expect to see?
The pasted hyperlink HL0 in local file F is expected to contain string “https://gitlab.com/”.
The pasted hyperlink HL0 in local file F is expected to be a FULL link: https://gitlab.com/city4cat/myblogs/-/blob/cd01707c12229e867233681e373adff677de4004/hojocn/zz_sweeper-office_cn/what.md

Consider including screenshots, error messages, and/or other helpful visuals

You can see this problem by access the Permalink: hojocn/zz_sweeper-office_cn/readme.md · cd01707c12229e867233681e373adff677de4004 · city4cat / myblogs · GitLab

And here is my screenshot.

What version are you on (Hint: /help) ? and are you using self-managed or gitlab.com?

I use gitlab.com.

What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

This problem doesn’t exist for a text with full-URL hyperlink(Case1). For example,

  • Access the rendered page of this file.
    It contains markdown code: [Sweeper Office](http://www.netlaputa.ne.jp/~arcadia/). Text “Sweeper Office” has a full-URL hyperlink.
  • Select text “Sweeper Office”.
  • Press keyboard keys Ctrl+C.
  • Open a local file(say it F) of MSOffice Word or LibreOffice Writer, then press keyboard keys Ctrl+V in file F. Then, text “Sweeper Office” with a hyperlink is pasted into file F. Check this hyperlink(say it HL1), it is correct: http://www.netlaputa.ne.jp/~arcadia/

This problem doesn’t exist by clicking Right-Mouse-Button then clicking “Copy Link”(Case2). For example,

  • Access the rendered page of this file which contain the following markdown code: - [About](./about.md)
  • Click Right-Mouse-Button on text “About”, then popup menu contains “Copy Link” menu item.
  • Click “Copy Link” menu item.
  • Press “Ctrl+V” to past the link, and check the link. The link is correct.

This problem doesn’t exist in another case(Case3). For example,

  • Access the rendered page of this file which contain the following markdown code: - [About](./about.md)
  • Hover mouse cursor over text “About”,
  • At the left-down corner of broswer window, it shows the hyperlink of text “About” with the correct value: https://gitlab.com/city4cat/myblogs/-/blob/cd01707c12229e867233681e373adff677de4004/hojocn/zz_sweeper-office_cn/about.md. Here is the screenshot:
    gl_hover

Regards