Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React router V4 link to external address

I've tried a few different recommendations, however, none seem to work. I'm using react router V4 and I would like to create a link that navigates to an external website. Currently, everything I do just appends to my URL.

What I want to happen www.mysite.com => click internal link and go to => www.newsite.com

What is happening www.mysite.com => click internal link and go to new page but it appends => www.mysite.com/www.newsite.com

<Link to="http://www.newsite.com">Go to new site</Link>

like image 549
bp123 Avatar asked Jul 28 '17 05:07

bp123


1 Answers

The solution to this was what @Giri suggested, a simple HTML link.

<a href="http://www.newsite.com">New site</a>
like image 134
bp123 Avatar answered Sep 30 '22 23:09

bp123