You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
๐ The bug
I enable sub folder, fetching static JSON URL is wrong.
๐ ๏ธ To reproduce
Steps to reproduce the behavior:
setting sub folder at nuxt.config.json
router: {
base: "/foo/",
}
using useFetch() method normaly.
access the page, the fetching static JSON is wrong. Nuxt tries fetching "fooKEY.json" not "foo/KEY.json"
๐ Expected behaviour
Fetching the correct URL; "foo/KEY.json".
โน๏ธ Additional context
It caused by here. When does not set sub folder settings, the options.publicPath indicates / but /foo/ sets is indicates /foo. Fetching "fooKEY.json" because of the slash is dropped.
Sorry for my poor English
The text was updated successfully, but these errors were encountered:
๐ The bug
I enable sub folder, fetching static JSON URL is wrong.
๐ ๏ธ To reproduce
Steps to reproduce the behavior:
๐ Expected behaviour
Fetching the correct URL; "foo/KEY.json".
โน๏ธ Additional context
It caused by here. When does not set sub folder settings, the
options.publicPath
indicates/
but/foo/
sets is indicates/foo
. Fetching "fooKEY.json" because of the slash is dropped.Sorry for my poor English
The text was updated successfully, but these errors were encountered: