From cf7974088b2fe47c6c5740452ddbec00afb5a15d Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Sat, 9 Sep 2023 14:42:12 -0300 Subject: [PATCH] [astro-pages.mdx] add example for internal page links (#4610) --- src/content/docs/en/core-concepts/astro-pages.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/content/docs/en/core-concepts/astro-pages.mdx b/src/content/docs/en/core-concepts/astro-pages.mdx index ee2fa59dc9cac..af58983533809 100644 --- a/src/content/docs/en/core-concepts/astro-pages.mdx +++ b/src/content/docs/en/core-concepts/astro-pages.mdx @@ -25,7 +25,13 @@ A single file can also generate multiple pages using [dynamic routing](/en/core- ### Link between pages -Write standard HTML [`` elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) in your Astro pages to link to other pages on your site. +Write standard HTML [`` elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) in your Astro pages to link to other pages on your site. Use a **URL path relative to your root domain** as your link, not a relative file path. + +For example, to link to `https://example.com/authors/sonali/` from any other page on `example.com`: + +```astro title="src/pages/index.astro" +Read more about Sonali. +``` ## Astro Pages