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>
This commit is contained in:
committed by
GitHub
parent
c6bb2843c8
commit
3b30a2bc65
@@ -73,6 +73,11 @@ When referencing a commit from a private repository inside of a commit message,
|
|||||||
|
|
||||||
{% data reusables.repositories.autolink-references %}
|
{% data reusables.repositories.autolink-references %}
|
||||||
|
|
||||||
|
## 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 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
|
## Further reading
|
||||||
|
|
||||||
* [AUTOTITLE](/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
|
* [AUTOTITLE](/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
|
||||||
|
|||||||
Reference in New Issue
Block a user