My question is: if we aren't using a "welcome" page, where should we make this alias() call from?
Best answer by admin
Hi - here are a few ideas... maybe it can help you get on the right track:
1. As you mentioned, if the user is new, add something like `?registered=true` to the homepage. On the homepage, check for that param. If found, call alias() and remove the parameter so they don't refresh it and call it again.
If you really don't want to use a URL query string, you could achieve the same thing with localStorage or cookies.
2. Can you call alias before redirecting? You mentioned it's a single-page-app, so I imagine that once they register you can call alias() and then redirect them to your homepage.
3. Can you check the referring URL from the homepage to see if it was a registration page?