I want a hyperlink to this URL:
steam://connect/104.238.229.211:28096
The wix editor won’t allow me to save it because it doesn’t like the steam://. How to work around this?
I want a hyperlink to this URL:
steam://connect/104.238.229.211:28096
The wix editor won’t allow me to save it because it doesn’t like the steam://. How to work around this?
Where in the Editor is this URL being rejected? If you are trying to set the link property of a Button , then see what URLs are valid in the documentation. Same goes for the wix-location.to() .
What are you trying to accomplish? You might be able to use a CustomElement for what you want.
Custom element seems ludicrously complicated when all I need is a basic hyperlink. My URL is valid, it works in a basic HTML page. But WIX won’t let me author it into my page with either the button element or hyperlinking text because it wrongly says the URL is invalid. Surely there’s a way to say “shut up and use my URL, wix”… right?
You can try:
let link = "steam://connect/104.238.229.211:28096";
let textToShow = "Click Me";
$w("#text1").html = `<a href=${link}><span>${textToShow}</span></a>`;
Wix limits the URL types to prevent abuse and ensure system integrity and security. As stated in the Text API :
The href attribute can contain all link types in the Wix link format.
I believe that both the HtmlComponent and the CustomElement are also “sandboxed” and may prevent using other “non Wix-type links”.