Skip to content

[BUG]: Remove is not updating the url, parameter stays in the url #15

@Luksch187

Description

@Luksch187

Describe the bug

The helpers.remove() method doesn't remove existing parameters from the url. They are removed from the params object but stay in the url. Is this intended behaviour?

Reproduction

I created a minimal reproduction, which can be cloned from the following repo:

https://github.com/Luksch187/svelte-params-remove

Steps to reproduce:

cd my-app
npm i
npm run dev

Just click the buttons and watch the url as well as the params object displayed with JSON.stringify

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700F
    Memory: 15.34 GB / 31.84 GB
  Binaries:
    Node: 22.8.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.0.0 - ~\AppData\Local\pnpm\pnpm.EXE
    bun: 1.1.43 - C:\Program Files\nodejs\bun.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions