Messages disappear after page refresh on Bubble template (messaging)

Hello,

I’m having an issue with a messaging template I imported into my Bubble app ( chatgpt will explain better) :

Main problem

  • I have a message page with type of content = Conversation.

  • Users can send messages to each other (e.g., Camille sends to Lucie).

  • Messages display correctly in the app data and in the RG immediately after sending.

  • However, when I refresh the message page, or when Camille returns from her profile page, the messages disappear from the RG.

  • Currently, the RG Messages is set to Current Page Conversation, and the parent group initially had no data source (I tried using Current Page Conversation).

What we’ve already tried

  1. Custom states / Current Page Conversation

    • RG is set to Current Page Conversation.

    • Added “Page is loaded” workflows with condition “Only when Current Page Conversation is empty.”

    • Tried using custom states, but it didn’t fix the issue.

  2. Get data from page URL / backup_url

    • Tried using the bcl_up (backup URL field) on Conversation, type = text, filled with Current Conversation’s unique ID.

    • Configured Page is loaded workflow to “Display data in Group” → Search for Conversations:first item where bcl_up = Get data from page URL.

    • In “Get data from page URL”:

      • Type = Parameter

      • Name = conv_id (typed manually, not from a list)

      • Type of value = text

    • Despite this, after refresh the RG Messages remains empty.

      conv_id is empty, so Page is loaded cannot retrieve the conversation.

  3. Privacy rules

    • Messages: This Message’s conversation’s Members contains Current User, view all fields + find this in searches checked.

    • Conversations: no privacy rules, visible to everyone.

  4. Workflow “Go to page message” from profile or button

    • Data to send = Current Conversation.

    • Bubble should generate a conv_id parameter in the URL, but currently the parameter remains empty.

  5. RG Messages

    • Type = Message

    • Data source = Search for Messages where conversation = Current Page Conversation, sorted by Created Date ascending.

    • No special parent group or custom state used for the RG.


Current situation

  • Everything works when clicking “Send Message” from a profile: messages appear in the RG.

  • As soon as you refresh the message page or open it directly via URL, Current Page Conversation is empty → RG is empty → messages disappear.

  • The suspected issue is that the conv_id parameter in the URL is not automatically populated by the template.


What I’m trying to achieve

  • Allow users to refresh the message page or open it via bookmark without losing the conversation and messages.

  • Understand whether I should force the conv_id URL parameter via the Go to page workflow or handle it via backup_url.


If anyone has worked with this kind of messaging template or knows how to properly set up Page is loaded + Get data from page URL + RG Messages, I’d greatly appreciate your guidance!

Thanks in advance :folded_hands:

1 Like

try to refresh with the debugger active, step by step and check for any (go to) workflow being executed after page load. if the user is already in the conversation page which is of type conversation then the conv id is already in the url..it doesn’t go away if you refresh so there must be a workflow that clears it.

Thank you for your message.

I tried using the debugger step by step and refreshing the page after sending messages. Here’s a screenshot of what is displayed.

I don’t have any “go to” workflow being executed. Honestly, I’m not sure what to do next.

Thanks again for your help!

this workflow changes the datasource for the group that contains the RG. This can be causing the issue if the RG source depends on the parent. But do you notice the condition? it only executes when the page’s convo is not empty, so the id is not lost. disable this workflow, and make the rg data source the page’s conversation’s messages. it should work. that’s the best I can do without seeing the setup, hope it helps!