We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdd620 commit c065505Copy full SHA for c065505
1 file changed
packages/nuxt/src/app/plugins/payload.client.ts
@@ -23,8 +23,8 @@ export default defineNuxtPlugin({
23
onNuxtReady(() => {
24
// Load payload into cache
25
nuxtApp.hooks.hook('link:prefetch', async (url) => {
26
- const { protocol } = new URL(url, window.location.href)
27
- if (!protocol) {
+ const { hostname } = new URL(url, window.location.href)
+ if (hostname === window.location.hostname) {
28
await loadPayload(url)
29
}
30
})
0 commit comments