How would you prefer to do it?
Is this for use in a snippet or is it part of a larger, class based component you are building?
it's for a snippet that lists users in the manager and i would like when clickng on the username is goes straight on the "update user" manager page.
Now it's just a draft but maybe later it ll be part of a class based component.
To be honest unless you'll be using this function again and again in various places you're just creating more work for yourself. Put it into a local function if you like, but if you're just doing that once I don't see a problem with it.
You're running the snippet in the manager?
thanks for your help
its a "Messages" snippet, users can send, receive, delete, reply messages, etc
They can warn the site admin for an innapropriate message they got from another user.
When this happens, the site admin receives a copy of the inapropriate message in his manager inbox.
In this message I think it could be a good thing to have link leading right to the user's profile.
And because I would like to make a package and share this snippet later, i would like to have a portable code. That's not the case with an hard link ( url params are not the same on others modx install )
No, i do not run the snippet in the manager, i only want to display links in these message to the admin.