therealcobb
therealcobb

Reputation: 177

Deeplinking - how to open a deeplink from React

I would like to open a deep link url from a React app with a schemelike:

<DEEP_LINK_SCHEME>://someInfor?param

but when I use:

history.push(url);

The URL I get redirected to contains my app as the base. Is there an alternative for opening link?

Upvotes: 0

Views: 3225

Answers (1)

therealcobb
therealcobb

Reputation: 177

So to answer my own question this works:

window.location.assign(url)

Upvotes: 3

Related Questions