Closed cvan closed 5 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
The A-Frame Slack currently has the following rooms:
aframe-site
art
assets
audio
editor
education
film
games
general
github (possibly rename to
bots-github`?)issues
(though different, this name seems synonymous with learning
and teachingmaterials
)projects
random
teachingmaterials
Besides the canonical URLs for the above channels, how do folks feel about these redirects?
/slack/academic/
-> https://aframevr.slack.com/https://aframevr.slack.com/messages/education//slack/academic
-> https://aframevr.slack.com/https://aframevr.slack.com/messages/education//slack/arts/
-> https://aframevr.slack.com/messages/art//slack/arts
-> https://aframevr.slack.com/messages/art//slack/edu/
-> https://aframevr.slack.com/messages/education//slack/edu
-> https://aframevr.slack.com/messages/education//slack/game/
-> https://aframevr.slack.com/messages/games//slack/game
-> https://aframevr.slack.com/messages/games//slack/gaming/
-> https://aframevr.slack.com/messages/games//slack/gaming
-> https://aframevr.slack.com/messages/games//slack/movie/
-> https://aframevr.slack.com/messages/film//slack/movie
-> https://aframevr.slack.com/messages/film//slack/movies/
-> https://aframevr.slack.com/messages/film//slack/movies
-> https://aframevr.slack.com/messages/film//slack/music/
-> https://aframevr.slack.com/messages/audio//slack/music
-> https://aframevr.slack.com/messages/audio//slack/school/
-> https://aframevr.slack.com/messages/education//slack/school
-> https://aframevr.slack.com/messages/education/All feedback welcome.
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.)