Next.js Discord

Discord Forum

Next routing issue

Unanswered
Great black wasp posted this in #help-forum
Open in Discord
Avatar
Great black waspOP
Hello, I have a problem like this, when I enter my site from the incognito tab and press the redirect button, which is the a element before the data is loaded, I am not redirected to the page in any way and then the data stops loading, no a tag starts to work.

I tried next/link with prefetch=false and router.push and it didn't work as expected

my nextjs version: "next": "^14.2.14",

14 Replies

Avatar
Great black waspOP
but when I pressed the button, the page request was being pulled without any problem.
but for some reason it doesn't redirect to the page
Avatar
what do you mean "from the hidden tab"?
Avatar
Great black waspOP
console logs:
GET /page-al?_rsc=1ru9v 200 in 716ms
GET /page-al?_rsc=bbgh2 200 in 702ms
GET /page-al?_rsc=bbgh2 200 in 629ms
GET /page-al?_rsc=bbgh2 200 in 538ms
incognito tab
Avatar
can you share a video?
Avatar
Great black waspOP
yes, one min
Avatar
Great black waspOP
I caught something like this in the network
Image
Original message was deleted
Avatar
can you inspect element on the button?
Avatar
Great black waspOP
just button element
i saw on a github issue page that I could use refresh, but it didn't do much
Image
Avatar
hmm
I couldnt replicate the issue :(
Avatar
Great black waspOP
I solved it, the whole page was suddenly freezing due to some sub-components giving errors, actually not really next/link related