Question

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

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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!

As @karanmv told, you can provide the full link to open, like https://www.anydomain.com/ or http://www.anydomain.com/