When setting a button as a link to open a new website in a new page, after publishing I receive a 404 error and the url in the search bar is example.com/www.newwebsite.com. It seems that it is trying to find the page under the domain directory when I want it to redirect to a completely different domain
Most likely the syntax of the link is not correct.
Does it start with http:// or https:// ?
You were right! I just needed https:// + www to make it work