[GH-ISSUE #896] Environment variable template (<<foo>>) appears urlencoded (%3C%3Cfoo%3E%3E) #315

Closed
opened 2026-03-16 14:39:53 +03:00 by kerem · 0 comments
Owner

Originally created by @zahhar on GitHub (May 24, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/896

Describe the bug
When a request used from Collection has environment variable interpolated into its URL, that variable appears urlencoded ("<" char replaced with "%3C" and ">" char replaced with "%3E"). No impact on functionality: interpolated variable still works, just looks ugly in URL field.

To Reproduce

  1. Define pre-request environment variable: pw.env.set('foo', 'bar');
  2. Use it in your request URL: example.com/<<foo>>
  3. Save request to collection
  4. Click on same request in collection to populate it into the form
  5. You will see that instead of expected example.com/<<foo>> URL field contains example.com/ %3C%3Cfoo%3E%3E.

Expected behavior
When using request from Collection its interpolated variables should appear same as they were saved, without urlencoding template.

Screenshots
Screenshot 2020-05-24 at 14 19 40

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Safari 13.1 and FF 76
Originally created by @zahhar on GitHub (May 24, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/896 **Describe the bug** When a request used from Collection has environment variable interpolated into its URL, that variable appears urlencoded ("<" char replaced with "%3C" and ">" char replaced with "%3E"). No impact on functionality: interpolated variable still works, just looks ugly in URL field. **To Reproduce** 1. Define pre-request environment variable: `pw.env.set('foo', 'bar');` 2. Use it in your request URL: `example.com/<<foo>>` 3. Save request to collection 4. Click on same request in collection to populate it into the form 5. You will see that instead of expected `example.com/<<foo>>` URL field contains `example.com/ %3C%3Cfoo%3E%3E`. **Expected behavior** When using request from Collection its interpolated variables should appear same as they were saved, without urlencoding template. **Screenshots** <img width="827" alt="Screenshot 2020-05-24 at 14 19 40" src="https://user-images.githubusercontent.com/48603/82753892-b93d2180-9dc9-11ea-9f46-286643dcd31c.png"> **Desktop (please complete the following information):** - OS: MacOS - Browser: Safari 13.1 and FF 76
kerem 2026-03-16 14:39:53 +03:00
  • closed this issue
  • added the
    bug
    label
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#315
No description provided.