Question

I included some external links in my website, but when i click on those links it opens a linkwith my domain/+link.

Posted August 18, 2016 1k views
DNS Ubuntu 16.04

I don´t know if it is something i have to do with the DNS

I included the dot after the domain in the CNAME Ex www domain.com. in order for that no to happen. But the thing is that is an external link, but it keeps carrying my domain in a new window.

Example of error when i open the link www.domain.com/www.google.com
the link in the code for the new window is just www.google.com.

Thank you

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hey there!

Usually, when you don’t specify any protocol (like HTTP or FTP) while specifying the link, it is assumed that you are linking to a file within the current directory or to a route in your application.

Try adding http at the beginning of the link in your source code. Example - instead of just linking to www.google.com, link it to http://www.google.com.

That should hopefully solve your problem!

Submit an Answer