[GH-ISSUE #3634] [feature]: improve usabilty of replace url parts with environment variable #1257

Closed
opened 2026-03-16 19:30:53 +03:00 by kerem · 1 comment
Owner

Originally created by @RaHehl on GitHub (Dec 8, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3634

Is there an existing issue for this?

  • I have searched the existing issues

Summary

An internal user reported to me about problems replacing placeholders in URLs:

image

He already sets the placeholders with a variable name, then he chooses "set as variable"

image

but the placeholder, which should actually be the variable name, is used as the value

Personally, I don't think this is a bug, but I think that the behavior could be improved here.

I've found that "set as variable" works not only with placeholders but generally with things that you mark. I think a more fluid behavior would be if the placeholder is used as the variable name if there are already existing placeholders, and if parts are simply marked, the value is still transferred to the value field, but then when the part is saved in the URL it is directly replaced with the variable .

Why should this be worked on?

Originally created by @RaHehl on GitHub (Dec 8, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3634 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary An internal user reported to me about problems replacing placeholders in URLs: ![image](https://github.com/hoppscotch/hoppscotch/assets/7577984/5336cdad-c245-4b2f-9b1e-c4c355d1bc63) He already sets the placeholders with a variable name, then he chooses "set as variable" ![image](https://github.com/hoppscotch/hoppscotch/assets/7577984/81aa2c2f-412e-409a-8350-a6ca2103c0f3) but the placeholder, which should actually be the variable name, is used as the value Personally, I don't think this is a bug, but I think that the behavior could be improved here. I've found that "set as variable" works not only with placeholders but generally with things that you mark. I think a more fluid behavior would be if the placeholder is used as the variable name if there are already existing placeholders, and if parts are simply marked, the value is still transferred to the value field, but then when the part is saved in the URL it is directly replaced with the variable . ### Why should this be worked on? -
kerem 2026-03-16 19:30:53 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@liyasthomas commented on GitHub (Dec 9, 2023):

Hi @RaHehl, thanks for suggesting this improvement, it seems there's already another issue ticket which could be a duplicate of this. Please track the progress on #3489.

<!-- gh-comment-id:1848256314 --> @liyasthomas commented on GitHub (Dec 9, 2023): Hi @RaHehl, thanks for suggesting this improvement, it seems there's already another issue ticket which could be a duplicate of this. Please track the progress on #3489.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1257
No description provided.