title: Navigate to an external website on button Click
body: <p>In my app users click on button and navigate to external website. This external website is picked dynamically based on a form they fill.</p>
  <p>Here, on clicking the button  is not working.</p>
  <p>What I am doing wrong here?</p>
  <pre><code> const handleLink1 =()=&gt;{
          &lt;Link
          to={{
              pathname: `${data.url}`
          }}
          target=&quot;_blank&quot;
      &gt;
          {' '}
   
      &lt;/Link&gt;
          
      }
  
  </code></pre>
  <pre><code>&lt;button onClick={handleLink1} className=&quot;btn-primary&quot;&gt; {data.buttonName}&lt;/button&gt;``
  
  </code></pre>