[🐞] Dynamic route params with SSG
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 22.1k
- Forks
- 1.4k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
Which component is affected?
Qwik City (routing)
Describe the bug
I am doing :
- Deployed application with SSG
- Routing with dynamic params (some are unknown at build time)
What I expect :
- With SPA navigation, I shoud be able to
- Navigate to a page including a dynamic params without having to implement onStaticGenerate
- The query params should be forwarded when using a Link tag
What's actually happening:
- 404 Error
- Query Params are not forwarded
Reproduction
https://github.com/Jeremy-Mrz/demo-ssg-qwik
Steps to reproduce
Since the issue is with the SSG, the reproduction app is deployed here : https://demo-ssg-qwik.vercel.app/
Click on link without onStaticGenerate, it displays a 404 while it shouldn't
Click on any links, it doesn't show the query params
System Info
Qwik V: 2.0.0-beta.19
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reproduction repository and deployed demo, then reproduce both failures with Qwik City routing under SSG. Trace dynamic-parameter navigation without onStaticGenerate and Link handling for query parameters; done means unknown dynamic routes no longer return 404 during SPA navigation and query parameters are preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100