From 951b0b3b0aa249f19f84a1a1e599fbf22c5b9ab9 Mon Sep 17 00:00:00 2001 From: Simone Taeggi Date: Tue, 7 Mar 2023 10:39:55 +0100 Subject: [PATCH] add a tip to prevent errors in the useFetchClient requestURL format --- docs/docs/core/helper-plugin/hooks/use-fetch-client.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/core/helper-plugin/hooks/use-fetch-client.mdx b/docs/docs/core/helper-plugin/hooks/use-fetch-client.mdx index 4d6d89ec63..747ad7d324 100644 --- a/docs/docs/core/helper-plugin/hooks/use-fetch-client.mdx +++ b/docs/docs/core/helper-plugin/hooks/use-fetch-client.mdx @@ -39,6 +39,10 @@ const Component = () => { } ``` +:::tip +Remember to use a relative path for your requestURL, following this format `/{yourRelativePath}` +::: + ## Methods Essentially, this is an abstraction around the axios instance exposed by a hook. It provides a simple interface to handle API calls to the Strapi backend.