Keep chat box on while redirecting to other pages

I’ve a chat box in my footer and all is working fine.
But, when I redirect to another page my chat box is closing, I want my chat box to keep as it is while moving to other pages?

Is there any way to do this?

Any help appreciated, thanks.

1 Like

Set a session with “keepOpen” state and your chatbox can retrieve the value from it?

If you are using iron router, this is easy, just put the chatbox outside the yield region and it will stay intact across page transitions.

<template name="layout">
  <header>My Cool App</header>
  <main>{{>yield}}</main>
  <footer>{{>chatBox}}</footer>
</template>
6 Likes

I’m looking to do the same thing. Can you share a little code or a blog post(s) to get me started?

@serkandurusoy’s answer should be the easiest solution and works with flow-router and flow-layout as well.

Thanks. What I meant was I’m looking to integrate the chat feature into my application like you did. Can you share some of the chat code to get me started?