I am trying to make users input links into their posts, onto a post page called mysite.com/subfolder/ using a form input.
In the result, if someone enters google.com, it displays
<a href="google.com">google.com</a>
when clicking on the link, it doesn't go to google.com, instead it links to mysite.com/subfolder/google.com.
Is there a way to prevent this from happening?
*Edit: I fixed this by entering making the input url, but other solutions would be great!