We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hello everyone. In my project I want:
https://example.com/123 <- to be an article detail page https://example.com/@123 <- to be a user detail page
And If i create two files:
it does not work. It always goes with [id].svelte
[id].svelte
However, this works as expected:
1) Create two files:
2) [id].svelte:
<script context="module"> export const load = async ({page}) => { console.log(page.params.id) }; </script>
3) Navigate browser to http://localhost:3000/@1 4) See output of console.log(page.params.id) It'll be @1 instead of 1
console.log(page.params.id)
@1
1
System: OS: macOS 11.4 CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Memory: 253.82 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.6.2 - /usr/local/bin/node Yarn: 1.22.11 - /usr/local/bin/yarn npm: 7.20.3 - /usr/local/bin/npm Browsers: Chrome: 93.0.4577.82 Safari: 14.1.1 npmPackages: svelte: ^3.34.0 => 3.42.6
annoyance
The text was updated successfully, but these errors were encountered:
Note: The fix might be related to #2401, but looks like it's a different issue.
Sorry, something went wrong.
Looks like a duplicate of that issue to me. I just merged the fix
No branches or pull requests
Describe the bug
Hello everyone. In my project I want:
https://example.com/123 <- to be an article detail page
https://example.com/@123 <- to be a user detail page
And If i create two files:
it does not work. It always goes with
[id].svelte
However, this works as expected:
Reproduction
1) Create two files:
2) [id].svelte:
3) Navigate browser to http://localhost:3000/@1
4) See output of
console.log(page.params.id)
It'll be
@1
instead of1
System Info
System: OS: macOS 11.4 CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Memory: 253.82 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.6.2 - /usr/local/bin/node Yarn: 1.22.11 - /usr/local/bin/yarn npm: 7.20.3 - /usr/local/bin/npm Browsers: Chrome: 93.0.4577.82 Safari: 14.1.1 npmPackages: svelte: ^3.34.0 => 3.42.6
Severity
annoyance
The text was updated successfully, but these errors were encountered: