Support subdomain #35
Labels
backend
Issue that require backend work
enhancement
New feature or request
frontend
Issue that require frontend work
READY
Ready to start working on
Is your feature request related to a problem? Please describe.
Communities need a custom URL to share with their users. That Url needs to change how we handle joining a community, automatic community selection and Plausible (our insight tool)
General
Community admins will be able to configure a subdomain (following certain rules and limitations) so they have address such as
my community.cambiatus.io
ortest.cambiatus.io
. This can be used share the community with friends, auto invite user even without a direct invitation link and also help us get insights on how different communities use the appJoining communities
Today, we have a few different routes to a user join the community:
a. If there is no user logged, it shows the registration form and automatically adds the user to the invite community
b. If there is a logged user, it simply asks if the user wants to join.
This works fine for now, but we want to expand that so that the default registration is smarter and aware of the Url being currently used. Imagine a community with an Url configured as
test.cambiatus.io
. If someone opens up this URL on their browser they should be greeted with a welcome message from the community and allowed to either login or register. In the case of login, nothing changes, but in the case of registration, the app should be smart enough to understand if the community requires KYC and to register the new user to that communityAutomatic community selection
We currently have a community selector that allows the app to scope the information based on that. We need to build a way to make the community to be selected automatically given the URL so if an user participates on
Community A
andCommunity B
, if the users typesa.cambiatus.io
the selector should automatically select it.It also needs to change the Url after the selection changed.
Plausibe and insights
Since we are going to have the Url to be dynamic depending on the selected community we will need to also update the way we add plausible so its dynamic, depending on the Url. Today we have it hard coded
<script async="" defer="defer" data-domain="muda.cambiatus.io" src="https://plausible.io/js/plausible.js"></script>
we need to change the tag before the Elm app loads depending on the URL. This will also help us to know if users try to use invalid subdomainsThe solution
To implement this feature we need to implement features in several different parts of Cambiatus:
demo
andstaging
should never be available, as well previously configured subdomain)The text was updated successfully, but these errors were encountered: