Wondering if you kind folks are able to help me find the right solution here?
I have a usecase where I’d like to send people individual links like this: mydomain.com/their-name
I’d like this to redirect that page to the homepage, if possible keeping the path accessible (in order to display dynamic data on the homepage).
Failing this, changing it to a parameter would be acceptable too. ?u=their-name
This will be for hundreds of people, so manually creating a page for each is not feasible.
I’ve reviewed this post but unfortunately it seems the method no longer works.
I have also tried the inbuilt 301s in the settings. ChatGPT suggested I might be able to use variables but I didn’t have any luck with that.
Does anyone have any thoughts on how this could be achieved please? I’d be incredibly grateful for any help!
That should be doable on Bubble. Some rough steps:
It should be the index page otherwise it will be mydomain.com/pagename/user-name
The page type should be USER
Slug as the current page user's name
How to send people to that page:
Action = Go to page → [your page] → Data to send = (do a search for user / current user)
That’s it! When sent to a page like this, it will show up as mydomin.com/user-name on the browser’s URL bar.
A different approach:
When user is created, also set the user’s slug as the name. If there’s a duplication it will automatically add a -1, -2 etc or you can use unique usernames as slugs.
Now set the page’s slug as the user’s slug. Then you can directly link to mydomain.com/[(do a search for user / current user)’ slug]
That will directly give you a clickable link - mydomain.com/userslug for external use.
Let me know if you have any questions or if this doesn’t work for you or if I’ve missed what you were looking for!
Hi there @rohanjainneri - Thanks very much for your help with this. Excellent!
For extra context, these links will be delivered to people via email and they’ll use them to arrive to the bubble app.
Which is great, but I’m wondering if it is possible for this to work without ‘index’?
I guess failing that I could rename the index page to ‘u’ or something short.