Skip to content

openBrowser can't open url of SPA  #2047

Closed
@kimown

Description

@kimown
const openBrowser = require('react-dev-utils/openBrowser')
const url = 'https://example.com?lattest=22&lngtest=33'
openBrowser(url)

I want to open url 'https://example.com?lattest=22&lngtest=33', but actually the url of opening tab is
'https://example.com/?lattest=22'

node: 7.6.0
os: darwin

Activity

gaearon

gaearon commented on May 1, 2017

@gaearon
Contributor

Interesting. Any idea why that happens? Is there some escaping we need to do?

added a commit that references this issue on May 16, 2017
98fec2d
added this to the 0.10.0 milestone on May 16, 2017
added a commit that references this issue on Jul 10, 2017
5c979ee
added a commit that references this issue on Aug 2, 2017
6f3e256
locked and limited conversation to collaborators on Jan 21, 2019
added a commit that references this issue on Oct 8, 2024
8de06f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @gaearon@kimown

      Issue actions

        openBrowser can't open url of SPA · Issue #2047 · facebook/create-react-app