Skip to content

URLs with query string not working on WSL #170

@tiagonapoli

Description

@tiagonapoli

I'm trying the following snippet in WSL:

const open = require('open')
open('http://www.google.com.br/?a=1&b=2', { url: true, wait: false })

But the URL opened is https://www.google.com.br/?a=1. The URL is trimmed after the first &.

I'm suspecting the shell is interpreting the & as a "Run in background" directive

open: 7.0.2
OS: Ubuntu 18.04 WSL on Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions