[GH-ISSUE #5595] [feature]: Support Relative Addresses #2166

Open
opened 2026-03-16 23:26:04 +03:00 by kerem · 0 comments
Owner

Originally created by @EmperorArthur on GitHub (Nov 18, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5595

Is there an existing issue for this?

  • I have searched the existing issues

Summary

If a URI is set to something like /api/v2/session, support prepending a special "$baseURL" environment variable. Similar to this example, but with the variable missing.

Alternatively, automatically prepend that variable if importing a schema which would only have relative URIs.

Why should this be worked on?

Schema documents like below are meant to allow a user to easily specify their own server, but are imported as relative addresses. These show as /api/v2/session until clicking "Send". At which point they are converted to https:///api/v2/session, and the request fails.

https://www.paessler.com/support/prtg/api/v2/oas/prtg.api.yaml

servers:
  - url: /api/v2
Originally created by @EmperorArthur on GitHub (Nov 18, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5595 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Summary If a URI is set to something like `/api/v2/session`, support prepending a special "$baseURL" environment variable. Similar to [this example](https://docs.hoppscotch.io/documentation/getting-started/rest/environment-variables), but with the variable missing. Alternatively, automatically prepend that variable if importing a schema which would only have relative URIs. ### Why should this be worked on? Schema documents like below are meant to allow a user to easily specify their own server, but are imported as relative addresses. These show as `/api/v2/session` until clicking "Send". At which point they are converted to `https:///api/v2/session`, and the request fails. https://www.paessler.com/support/prtg/api/v2/oas/prtg.api.yaml ```yaml servers: - url: /api/v2 ```
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#2166
No description provided.