mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[PR #1453] [CLOSED] fixed path parameter encoding and URL updation #3318
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#3318
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/1453
Author: @oshhh
Created: 1/29/2021
Status: ❌ Closed
Base:
main← Head:bug_fixes📝 Commits (4)
3f43cdcfixed path parameter encoding270141afixed path parameter decoding and updatione2728adremoved debugging print692bb83fixed url and uri dependancy📊 Changes
3 files changed (+12 additions, -15 deletions)
View changed files
📝
helpers/templating.js(+2 -1)📝
pages/index.vue(+9 -13)📝
store/state.js(+1 -1)📄 Description
Changed the parseTemplateString function. new URL(string).toString() would take care of bad format URLs instead of calling encodeURI explicitly as was done in this commit to ensure double encoding doesn't occur on the URLs.
Also changed the way updation happens for URLs. On getting a URL, I am regenerating it from the URI and parameters instead of creating it in advance. Creating in advance is an issue when the parameter values are changed as mentioned in issue #1452
Solves #1451 #1452
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.