Support slack://open

Hi, I’m building a Slack chatbot, and we need a Thank You page with a button that deep link into Slack, using the slack://open URL ( https://api.slack.com/docs/deep-linking )

Wix doesn’t support that URL. When I try to add it it says “Check URL and try again”

I thought this is probably a protection to prevent beginners to mess up. So I turned to Wix code:

In Wix code, when I set the URL to “www.google.com” it works, clicking the button redirects to Google. When I set the URL to “slack://open” it doesn’t work. It seems Wix is doing everything it can to not link to this page.

Any idea how I can make this work? Am I missing something?

1 Like

When you use the URL “www.google.com”, you are in fact redirecting - to another site. However, the URL “slack://open” does not redirect, it tries to open an app on the client’s machine. This is not permitted from a Wix site.

Can you think of any workaround I could use? What if I sent to a non-Wix site that then redirects to the slack://open. Or some Javascript that could trigger slack://open?

@aubetony you can add an html component to your page and put the link there. something like:

<p><a href="slack://open" target="_blank">Open Slack</a></p>

Another thing you can do is to use a short url address such as tinyurl.com (or many other similar sites) to create a redirection url for slack://open.
Then you can link this URL to a regular Wix button.

@jonatandor35 I haven’t tried the HtmlComponent for this, but the HtmlComponent also has limitations in order for security and integrity issues.

@yisrael-wix I tried the htmlComponent (on iPhone - both Safari and google Chrome) and it opened the app.

@jonatandor35 Ya learn something new everyday. Thanks!

@yisrael-wix I hope you’re not going to report it as a bug. Give us some slack here!
:slight_smile:

@jonatandor35 Ha! I tried this with Bit.ly and it didn’t work, but apparently it works with TinyURL. Problem solved, thanks!

@aubetony You’re welcome :slight_smile:

@jonatandor35 As far as I understand, you now have Slack .

The only bug I can see here is maybe one of consistency. I’m going to run this by QA for evaluation.

@yisrael-wix I was stupid - If you find a way out, never let the gate guards know…

@jonatandor35 Nah. To me, the problem is that the HtmlComponent should allow this - but for both Bitly and Tinyurl. I’ll tell QA not to tell anyone.