Infinite redirect in middleware
export default defineNuxtRouteMiddleware(async (to, from) => {
const url = window.location.href;
// Check if we are on "localhost:3000"
if (url.includes("localhost:3000")) {
console.log(to.path, from.path);
return navigateTo(to.fullPath);
}
return abortNavigation();
});
How can i solved this ?
const url = window.location.href;
// Check if we are on "localhost:3000"
if (url.includes("localhost:3000")) {
console.log(to.path, from.path);
return navigateTo(to.fullPath);
}
return abortNavigation();
});
How can i solved this ?
