Skip to content

Commit 3b30a2b

Browse files
mschoettlehectorsectorsubatoiSharra-writes
authored
Document how to avoid backlinks for references (#35987)
Co-authored-by: Hector Alfaro <hectorsector@github.com> Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com> Co-authored-by: Sharra-writes <sharra-writes@github.com>
1 parent c6bb284 commit 3b30a2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ When referencing a commit from a private repository inside of a commit message,
7373

7474
{% data reusables.repositories.autolink-references %}
7575

76+
## Avoiding backlinks to linked references
77+
78+
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.
79+
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.
80+
7681
## Further reading
7782

7883
* [AUTOTITLE](/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)

0 commit comments

Comments
 (0)