Creating a domain with username profiles (ie: myapp.com/username)

Somewhat database related. If I have a list of users who have all chosen a username, how can I structure my app so that their profile is accessible WITHOUT the need for URL parameters? Trying to avoid needing to do something like myapp.com/username=janedoe.

I’d love for it to instead just be myapp.com/janedoe. Obviously then the information inside the page would just be dynamically generated based on the username.

Thank you for your help!

The closest I’ve been able to get is by sending people to a page called “me” with the data passed in the URL that way. So essentially:

myapp.com/me/janedoe

Set your “myapp.com” page data type to User. Set a slug for all your users when they are created (it’s a workflow action) and you’ll be able to access the user data myapp.com/slug

2 Likes

@Future I’m pretty sure this doesn’t work unless you have a page defined like myapp.com/u/slug

Are you aware of a way to use slugs without a page defined?