From 5d7e324f5b3dd84936e968b913ba89ba6022b265 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Sun, 10 Apr 2022 01:46:16 +0200 Subject: [PATCH] Extend documentation for relative links --- data/reusables/repositories/relative-links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/reusables/repositories/relative-links.md b/data/reusables/repositories/relative-links.md index 4d278786bd45..177085bf9517 100644 --- a/data/reusables/repositories/relative-links.md +++ b/data/reusables/repositories/relative-links.md @@ -6,6 +6,6 @@ A relative link is a link that is relative to the current file. For example, if [Contribution guidelines for this project](docs/CONTRIBUTING.md) ``` -{% data variables.product.product_name %} will automatically transform your relative link or image path based on whatever branch you're currently on, so that the link or path always works. You can use all relative link operands, such as `./` and `../`. +{% data variables.product.product_name %} will automatically transform your relative link or image path based on whatever branch you're currently on, so that the link or path always works. The path of the link will be relative to the current file. Links starting with `/` will be relative to the repository root. You can use all relative link operands, such as `./` and `../`. Relative links are easier for users who clone your repository. Absolute links may not work in clones of your repository - we recommend using relative links to refer to other files within your repository.