Skip to content

Bug: Exporting collection to Postman appends query parameters to the path array when using a base URL variable #8287

@GiteshDohare

Description

@GiteshDohare

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

3.4.2

Operating System

Ubuntu 24.04

Describe the bug

When exporting a Bruno collection to a Postman collection format, if a request URL uses an environment variable as the host (e.g., {{baseUrl}}) instead of an explicit protocol (http:// or https://), the converter incorrectly appends the entire query string to the last segment of the path array in the exported JSON.

Expected Behavior

For a URL like:
{{baseUrl}}/api/resource?message=Hello&userId=101

The exported Postman URL object's path array should cleanly split the segments:

"path": ["api", "resource"]

Actual Behavior

The query string leaks into the path structure, producing an invalid path component like this:

"path": ["api", "resource?message=Hello&userId=101"]

Steps to Reproduce

  1. Create a request in Bruno with a URL starting with a collection/environment variable instead of a protocol (e.g., {{baseUrl}}/api/chat?user=1).
  2. Export the collection to a Postman collection format.
  3. Open the exported .json file and inspect the request.url.path block.

.bru file to reproduce the bug

Import this Bruno collection and Export it as Postman collection

Bruno Test.zip

Exported Bruno Collection

Bruno Test.json

Screenshots/Live demo link

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions