Static URL with receiver username?


(Majed Alhrbi) #1

In the signup email and Bot welcome message I Want to add more line with URL.

This URL is similar in every message only the receiver username is different.

e.g:

www.name.com/folder/username/static

Anyone can give me the correct structure that will show linkable URL ?


(Bhanu Sharma) #2

If you want it to be in current user’s profile, /my/ works fine.


(Majed Alhrbi) #3

I want it to include user name
e.g:
meta .discourse.org /u/itsbhanusharma/badges

as you can see your user name (itsbhanusharma) in the URL itself.

I just need to know what is the string to add ?


(Bhanu Sharma) #4

If you want a user to see his own badges with that link, you can craft the url as:

https://meta.discourse.org/my/badges

If you want of one particular user’s badges to be shown to everyone, hard code their username.


(Majed Alhrbi) #5

Actually I want to show the receiver user name and asking him to share it with others.
So he will see the Badge page but when he shares it they will not see that page. correct ?


(Bhanu Sharma) #6

If they’re copying the link from your message then no, it won’t work as whoever enters that link in their browser will see their own badges but if they copy the browser url when they click your link, it should have changed to /u/username/badges