Clicking a link with rel="preload" isn't actually loading the new url [Sapper related?] #25188
Unanswered
diverent2
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior
Hello there 👋
I'm running a sapper app and I'm basically having a test thats supposed to switch the route in my SPA while keeping the current session alive.
All I do is click a link to another route and my node-server (supposably) does the rest.
Cypress then tells me I've switched the URL as expected
However: My app remains on the same site and the test fails. 😞
After some research Ive found this Stackoverflow Question which explains that my problem seems to be related to the property
rel="prefetch"
and therefor it appears to be a problem with the node-server.I've quickly tested this by removing the
prefetch
and then it works fine. (but I don't want to do this oc).Desired behavior
I click a link (regardless of using
prefetch
or not) and Cypress/my app switches to the according url/route.my requirements
session
of the SPA (that's also why I can't usecy.route()
)Test code to reproduce
Versions
Thank you for your support/help!
Beta Was this translation helpful? Give feedback.
All reactions