From 1651aff9fce604393e38accc91bef1c25eb8e829 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle <git@mattsch.com> Date: Sat, 18 Jan 2025 16:50:57 -0500 Subject: [PATCH 1/4] Document how to avoid backlinks for references --- .../autolinked-references-and-urls.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md index 3f9c414092e8..f4e3b4870cff 100644 --- a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md +++ b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md @@ -73,6 +73,11 @@ When referencing a commit from a private repository inside of a commit message, {% data reusables.repositories.autolink-references %} +## Avoiding backlinks to linked references + +References to issues, pull requests, etc. cause the referenced item to have a backlink to the referencing item. +To avoid this, you can use the URL `redirect.github.com` instead of `github.com` in your reference. + ## Further reading * [AUTOTITLE](/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) From 9807c656af983faef366fd626251e254503029b5 Mon Sep 17 00:00:00 2001 From: Sharra-writes <sharra-writes@github.com> Date: Wed, 23 Apr 2025 11:21:25 -0700 Subject: [PATCH 2/4] Update content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Editing for clarity and to fit our style guide. 💛 --- .../autolinked-references-and-urls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md index f4e3b4870cff..2da17bcb041b 100644 --- a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md +++ b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md @@ -75,7 +75,7 @@ When referencing a commit from a private repository inside of a commit message, ## Avoiding backlinks to linked references -References to issues, pull requests, etc. cause the referenced item to have a backlink to the referencing item. +By default, references generate a backlink. For example, manually linking to an issue in a pull request will automatically generate another link from the issue back to the pull request. To avoid this, you can use the URL `redirect.github.com` instead of `github.com` in your reference. ## Further reading From 4df2e0dcf6229a7b47ca34853990a833ab8c254b Mon Sep 17 00:00:00 2001 From: Sharra-writes <sharra-writes@github.com> Date: Wed, 23 Apr 2025 11:23:14 -0700 Subject: [PATCH 3/4] Update content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md Adding in information about the lack of a pop-up window. --- .../autolinked-references-and-urls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md index 2da17bcb041b..41f0c745cd1a 100644 --- a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md +++ b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md @@ -76,7 +76,7 @@ When referencing a commit from a private repository inside of a commit message, ## Avoiding backlinks to linked references By default, references generate a backlink. For example, manually linking to an issue in a pull request will automatically generate another link from the issue back to the pull request. -To avoid this, you can use the URL `redirect.github.com` instead of `github.com` in your reference. +To avoid this behavior, you can use `redirect.github.com` instead of `github.com` when constructing the URL in your reference. If you do use a `redirect.github.com` URL in your reference link, no pop-up window will appear when hovering over it. ## Further reading From 1abc7664fa91528f40044c47b10aa76047617aa6 Mon Sep 17 00:00:00 2001 From: Sharra-writes <sharra-writes@github.com> Date: Wed, 23 Apr 2025 11:33:21 -0700 Subject: [PATCH 4/4] Update content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md --- .../autolinked-references-and-urls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md index 41f0c745cd1a..b987614ee498 100644 --- a/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md +++ b/content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md @@ -75,7 +75,7 @@ When referencing a commit from a private repository inside of a commit message, ## Avoiding backlinks to linked references -By default, references generate a backlink. For example, manually linking to an issue in a pull request will automatically generate another link from the issue back to the pull request. +By default, references generate a backlink. For example, manually linking to an issue in a pull request will automatically generate another link from the issue *back* to the pull request. To avoid this behavior, you can use `redirect.github.com` instead of `github.com` when constructing the URL in your reference. If you do use a `redirect.github.com` URL in your reference link, no pop-up window will appear when hovering over it. ## Further reading