QwikDev / QwikDev/qwik

[🐞] Dynamic route params with SSG

Open
#8,369 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug router
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
  1. Navigate to a page including a dynamic params without having to implement onStaticGenerate
  2. The query params should be forwarded when using a Link tag

What's actually happening:

  1. 404 Error
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.