0

I need to redirect to a completely new application when I click on a button in my app. This means that from URL: localhost:8080, I need to be redirected to stackoverflow.com If I use <Redirect to="stackoverflow.com"/> I get this: http://localhost:8080/https://stackoverflow.com So it attaches the new address to the old one, and what I need is to redirect me to stackoverflow.com. Is there a way to do this using Redirect component from react-router? Thanks.

Ajifos
  • 69
  • 6

0 Answers0