Skip to content

[🐞] Dynamic route params with SSG #8369

@Jeremy-Mrz

Description

@Jeremy-Mrz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    RouterbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions