Open
Description
Describe the bug
When setting url in the initial useFetch with a trailing slash, addition get/post/patch functions where you add more to the URL adds an extra slash, making the request return a 404.
const { get, loading, error } = useFetch('https://google.com/');
await get('test/test1');
URL will resolve to http://google.com//test/test1
To Reproduce
See above
Expected behavior
Would expect the URL to be https://google.com/test/test1
Metadata
Metadata
Assignees
Labels
No labels