[Bug]: empty string arguments get omitted when parse to query string (e.g. open new window)
Author: samMeowCreated Sep 18, 2026Updated Sep 28, 2026
Labelsbuguicoreargssev:S3
Describe the bug
When user try to use empty string as arguments for certain components and open a new tab. Storybook try to parse all arguments and put it as querystring, however falsy value (e.g. empty string) is dropped Resulting that argument is not passed properly. https://github.com/storybookjs/storybook/blob/v10.6.0/code/core/src/manager-api/modules/url.ts#L49
Reproduction link
https://github.com/storybookjs/storybook/blob/v10.6.0/code/core/src/manager-api/modules/url.ts#L49
Reproduction steps
- Create a component stories that accept string argument
- Make that string argument to empty
- Open a new tab
System
System:
│ OS: macOS 26.6.2
│ CPU: (10) arm64 Apple M1 Max
│ Shell: 5.9 - /bin/zsh
│ Binaries:
│ Node: 24.15.0 - /Users/-/.nvm/versions/node/v24.15.0/bin/node
│ Yarn: 1.22.22 - /Users/-/.nvm/versions/node/v24.15.0/bin/yarn
│ npm: 11.12.1 - /Users/-/.nvm/versions/node/v24.15.0/bin/npm
│ <----- active
│ pnpm: 11.9.0 - /Users/-/.nvm/versions/node/v24.15.0/bin/pnpm
│ Browsers:
│ Chrome: 153.0.8010.52
│ Firefox: 155.0.1
│ Safari: 26.6.2Additional context
No response
Source: storybookjs/storybook