Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Multipage with Path Params #9664

Closed
4 tasks done
JsonMiller opened this issue Aug 14, 2022 · 1 comment
Closed
4 tasks done

Support Multipage with Path Params #9664

JsonMiller opened this issue Aug 14, 2022 · 1 comment

Comments

@JsonMiller
Copy link

Description

As a developer I would like to be able to pass params to apps built with Vite as path params. This would give me the ability to put resource IDs into my path instead of passing them as query parameters.

Current behavior with the dev server is

Page is defined and served on path test

http://host/test/ returns the app as expected.

http://host/test/id returns the fallback main page

Suggested solution

I've tried digging into the dev server code, but fell short of an actual solution.

What I'd like to see happen is that the path is matched to a best match instead of a perfect match.

so http://host/test/id would match and return the test app even though there's addition path information.

Alternative

I haven't tried this in a prod build, but I imagine the alternate solution would be to prod build and then deliver using a different server.

Additional context

No response

Validations

@bluwy
Copy link
Member

bluwy commented Aug 15, 2022

Duplicate of #2958

@bluwy bluwy marked this as a duplicate of #2958 Aug 15, 2022
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants