I am trying to redirect to the specified URL when clicked on image. It is appending localhost by default at the beginning of the URL and thus considering URL as the sub domain of localhost and its unreachable Approach 1:
<a rel="noopener noreferrer" href={rowData.preview} target="_blank">
<Image
className="preview-content"
src={webAttachment}
/>
</a>
Approach 2:
<Link to={rowData.preview}>
<Image
className="preview-content"
src={webAttachment}
/>
</Link>
{rowData.preview} includes url of any website. Not getting reliable solution in any of the approach.