aframevr / aframe-site

:a: Official A-Frame site.
https://aframe.io/
MIT License
99 stars 143 forks source link

Turn `/slack` into a server-side page that conditionally shows sign-up page or redirects to the aframevr.slack.com subdomain #345

Closed cvan closed 5 years ago

cvan commented 8 years ago

https://aframe.io/slack

We'll make a GET request to the backend server app (https://github.com/aframevr/aframevr-slack-invite-automation) to see if the user has already signed up; if so, we can redirect to https://aframevr.slack.com/. If not, we show the sign-up form.

And, let's also support URLs with wildcards for room names. The preferred naming might be:

https://aframe.io/slack/ https://aframe.io/slack// https://aframe.io/slack/general https://aframe.io/slack/general/

We shouldn't advocate for other namings, but we should also support https://aframe.io/slack/@general/? and https://aframe.io/slack/#general/? (Caveat: in the latter case, the hash symbol would need to get stripped using client-side JS, since the server will never see a hash in a URL.)

cvan commented 8 years ago

Now that I think about this, this should be handled purely server side (except for the cases of channel rooms as hashes in the URL). I'll leave this issue here though.

A related issue is on file: https://github.com/aframevr/aframevr-slack-invite-automation/issues/1

cvan commented 8 years ago

The A-Frame Slack currently has the following rooms:

Besides the canonical URLs for the above channels, how do folks feel about these redirects?

All feedback welcome.