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

FormAction with a parameter that contains a slash #13543

Open
Lure5134 opened this issue Mar 5, 2025 · 0 comments
Open

FormAction with a parameter that contains a slash #13543

Lure5134 opened this issue Mar 5, 2025 · 0 comments

Comments

@Lure5134
Copy link

Lure5134 commented Mar 5, 2025

Describe the bug

If I have a route with a parameter e. g. /route/[param] and the param contains a escaped slash (%2F) the routing works correctly. If there is a form with a form action. The action doesn't submit to the escaped url with %2F but to the url with an slash. But with a slash the route is different and doesn't exists. This throws a 404.

Reproduction

Create a route with a param and use a form inside. Open the form where the param contains a %2F. Submit the form and it throws a 404.

Logs

System Info

System:
    OS: macOS 14.6
    CPU: (8) arm64 Apple M3
    Memory: 233.64 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    npm: 11.0.0 - ~/Library/Application Support/Herd/config/nvm/versions/node/v22.13.0/bin/npm
    pnpm: 9.15.4 - ~/Library/Application Support/Herd/config/nvm/versions/node/v22.13.0/bin/pnpm
  Browsers:
    Brave Browser: 133.1.75.181
    Edge: 133.0.3065.92
    Safari: 17.6
  npmPackages:
    @sveltejs/adapter-auto: ^4.0.0 => 4.0.0 
    @sveltejs/kit: ^2.17.3 => 2.17.3 
    @sveltejs/vite-plugin-svelte: ^5.0.3 => 5.0.3 
    svelte: ^5.20.5 => 5.20.5 
    vite: ^6.2.0 => 6.2.0

Severity

annoyance

Additional Information

No response

@Lure5134 Lure5134 changed the title Form with a parameter with an Slash FormAction with a parameter that contains a slash Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant