Skip to main content

Deep linking to a specific user's Direct Message (Chat) via URL?

Hi everyone / devs,

I'm building a custom integration on my site and hoping someone knows if a specific URL routing feature exists yet for the Fluent Community Chat SPA.

The Setup: I have a custom post type (Listings) outside of the community portal. I have added a custom "Message" button to these listings. When a logged-in member clicks it, my PHP script intercepts the click, logs a lead generation task in Fluent Boards, and then uses wp_redirect() to send the user into the Community Portal to start chatting with the agent.

The Issue: Currently, I am redirecting them to the base chat route: https://mydomain.com/portal/chat. This successfully opens the messenger, but the user still has to manually search for the agent to start the conversation.

My Question: Is there a specific URL parameter, hash, or deep-link route that the Vue router accepts to automatically open a direct message conversation with a specific user?

For example, is there something like:

  • mydomain.com/portal/chat?user_id=123
  • mydomain.com/portal/messages/username
  • mydomain.com/portal/user/123/message

If this isn't natively supported via URL parameters yet, is there a known workaround to force-initiate a DM with a target ID when dropping a user into the SPA from an external WordPress page?

Thanks in advance for any insights!

Luke Nova

I got it!! thanks anyway..!
https://mydomain.com/portal/chat?user_id=xxx