mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5001] [bug]: Show code adds index on query parameter if more than one with same name #1902
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1902
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NZetterval on GitHub (Apr 16, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5001
Originally assigned to: @SharadSaha on GitHub.
Is there an existing issue for this?
Current behavior
Show code of request when more than one query parameter with same name adds an index. Should not do that. See below example:
Generates:
curl --request GET
--url 'https://api.example.com/v1/iot-subscriptions/?include[0]=health&include[1]=variables&include[2]=enablementHardware'
Should be:
curl --request GET
--url 'https://api.example.com/v1/iot-subscriptions/?include=health&include=variables&include=enablementHardware'
Steps to reproduce
Logs and Screenshots
Environment
Production
Hoppscotch Version
Cloud
Interceptor
Not Applicable - Issue not related to network requests
Browsers Affected
No response
Operating System
None
Additional Information
No response
@SharadSaha commented on GitHub (Jul 5, 2025):
Hi, I have been following this issue, and would love to open a PR to resolve this. Please assign this to me.
@SharadSaha commented on GitHub (Jul 5, 2025):
@liyasthomas Seems like this is an issue with httpsnippet itself, I have identified the issue as well, I would like to raise a PR against https://github.com/hoppscotch/httpsnippet. Please let me know if that is the approach to take.
PR : https://github.com/hoppscotch/httpsnippet/pull/5
@jamesgeorge007 commented on GitHub (Jul 31, 2025):
Hi, closing this issue since it's resolved in the latest release.