mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3130] [MERGED] fix: fix url getting overridden when query params are present #4244
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#4244
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3130
Author: @amk-dev
Created: 6/9/2023
Status: ✅ Merged
Merged: 6/9/2023
Merged by: @AndrewBastin
Base:
release/2023.4.6← Head:hfe-71📝 Commits (1)
2676336fix: fix url getting overridden when query params are present📊 Changes
2 files changed (+18 additions, -8 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/RESTExtURLParams.ts(+14 -7)📝
packages/hoppscotch-common/src/pages/index.vue(+4 -1)📄 Description
fixes #3098
fixes HFE-71
Before
We support loading request properties from URL query params. we have a function
translateExtURLParamsthat takes query params and converts it into Hoppscotch request properties, but this function was always adding these properties to the default request. so whenever a query param is present, this function is running, and it overwrites the existing request.After
This function takes an optional
initialRequestparameter that will be used instead of the defaultRequest if passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.