Open genki opened 4 months ago
This is why the documentation example doesn't work: https://qwik.dev/docs/api/#going-back
Good point, PR welcome. The code is most likely inside qwik-city-component.tsx
you can use nav(-1) to go back.
the value might be set here https://github.com/QwikDev/qwik/blob/551e9fe950a469528845c43888899f1f089675d5/packages/qwik-city/src/runtime/src/qwik-city-component.tsx#L224 so PRs welcomed
Which component is affected?
Qwik City (routing)
Describe the bug
I have tried to detect the SPA navigation. I expected the
loc.prefUrl
isundefined
at the first render, but it is already set to the URL of the page at the very beginning.Reproduction
https://stackblitz.com/edit/qwik-starter-q5hnsb?file=src%2Froutes%2Findex.tsx
Steps to reproduce
No response
System Info
Additional Information
No response