Akenefick
4 years agoGenius
How do you get the compose private message lightbox to open?
I am just starting to learn to make custom components with FreeMarker and the API. As a practice project I am making a friends list which should allow you to send a friend from the list a private message. I copied the following URL from the "Send this user a private message" link on the profile page. (friendID and friendName are my own variables)
<a href="/t5/notes/privatenotespage/tab/compose/note-to-user-id/${friendID}">Message ${friendName}</a>
When you click this on the user profile page it opens a lightbox with the message editor on top of the user profile page. My component instead opens the "privatenotes" page and you have to click the new message pencil icon to open the lightbox editor. It does at that point autofill in the username of the friend you selected.
So just curious why it behaves differently? Thanks