Im trying to push a user to an external url but that problem is that the url is incomplete, for example it may look like this:
google.com
If I used link or even just an tag in Nextjs, it will only link the user to an internal page. I want the user to be redirected to an external page. Here is my Code:
<a href={`${data.link}`}>
<div className={css.visitLinkContainer}>
Visit Link
</div>
</a>
The data.link
may have a url that is incomplete like this: google.com
. How can I go around this problem?