Skip to content

openBrowser can't open url of SPA  #2047

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

  1. gaearon commented on May 1, 2017

    @gaearon
    Contributor

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

  2. added a commit that references this issue on May 16, 2017
    98fec2d
  3. added this to the milestone on May 16, 2017
  4. added a commit that references this issue on Jul 10, 2017
    5c979ee
  5. added a commit that references this issue on Aug 2, 2017
    6f3e256
  6. locked and limited conversation to collaborators on Jan 21, 2019
  7. 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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions