Broadcasting inside after_create_commit. Url helpers have `example.org` host

Hi there, so i have a small model, that appends itself to a content after it’s created. It broadcasts itself, and another partial to append it to the <body>.

 after_create_commit do
    broadcast_append_to(
      list,
      target: :contacts,
      partial: "contactables/contactable",
      locals: { contactable:, viewed: nil }
    )

    broadcast_append_to(
      list,
      target: :contacts,
      partial: "list_contacts/create",
      locals: { list_contact: self }
    )
  end

Both work successfully, however, i have a route data- attribute inside the contactable view. When it’s appended, the url looks like so

Any idea why the route helpers resolves to .example.org?. I have not configured any domain(it’s localhost) on development.

Thanks for your insights

Never mind this. I resolved to accessing the route using this format

 Rails.application.routes.url_helpers.business_list_contact_url(contactable.business, list, contactable)

instead of

business_list_contact_url(contactable.business, list, contactable)