"Repository mirroring paused" email link is invalid
Summary
The email notification for Repository mirroring paused
contains an invalid link to the repository.
Steps to reproduce
Somehow pause a repository mirror sync. In my case, I force pushed to the Github.com repository, which Gitlab did not allow, hence it paused the sync.
Example Project
Private repo, syncing a private Github.com repo: https://gitlab.com/LordMike/rekruttering
What is the current bug behavior?
The email contents are pasted below. Notice that the plaintext MIME part contains a valid link, while the HTML MIME part contains this link: <a href="/LordMike/rekruttering/settings/repository">
:
----==_mimepart_5adb84fb2f96a_33dc3fcfc3c5e8c4166510
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Repository mirroring on LordMike/rekruttering has been paused due to too many failures. The last failure was:
GitLab: You are not allowed to force push code to a protected branch on this project.<br>
To resume mirroring update your repository settings at https://gitlab.com/LordMike/rekruttering/settings/repository.
---
You're receiving this email because of your account on gitlab.com.
----==_mimepart_5adb84fb2f96a_33dc3fcfc3c5e8c4166510
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<p>
Repository mirroring on LordMike/rekruttering has been paused due to too many failures. The last failure was:
</p>
<pre>GitLab: You are not allowed to force push code to a protected branch on this project.<br></pre>
<p>
To resume mirroring update your <a href="/LordMike/rekruttering/settings/repository">repository mirroring settings</a>.
</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
</p>
</div>
</body>
</html>
----==_mimepart_5adb84fb2f96a_33dc3fcfc3c5e8c4166510--
What is the expected correct behavior?
Valid links in both MIME parts of the mail.
Relevant logs and/or screenshots
N/A: Gitlab.com
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
N/A: Gitlab.com
Results of GitLab application Check
N/A: Gitlab.com
Possible fixes
I cannot locate the template for the mail I received. It may be a Gitlab EE feature.