From 61e4f2cb1fd74e9ef3122e5d9e974df6ba7eee29 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Tue, 31 Aug 2021 12:58:52 -0500 Subject: Remove caveat about `Astro.request` not being passed to components. (#1276) --- docs/src/pages/reference/api-reference.md | 2 -- 1 file changed, 2 deletions(-) (limited to 'docs/src/pages/reference/api-reference.md') diff --git a/docs/src/pages/reference/api-reference.md b/docs/src/pages/reference/api-reference.md index a5a94f9a1..046971925 100644 --- a/docs/src/pages/reference/api-reference.md +++ b/docs/src/pages/reference/api-reference.md @@ -58,8 +58,6 @@ const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of po | `url` | `URL` | The URL of the request being rendered. | | `canonicalURL` | `URL` | [Canonical URL][canonical] of the current page. | -⚠️ Temporary restriction: this is only accessible in top-level pages and not in sub-components. - ### `Astro.resolve()` `Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder. -- cgit v1.2.3