chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Creating a button to redirect to other page inside chainlite UI

Open diogofranciscop opened this issue 7 months ago • 1 comments
trafficstars

I want to create a button to redirect to other page inside chainlit UI. I found in the documentation that we can indeed add a button but to a external link.

I wanted to achieve a double-page app where the user could navigate between the chatbot and the other page.

Is there a way to achieve these without forking the repo?

diogofranciscop avatar Apr 17 '25 08:04 diogofranciscop

Have you checked out the custom elements and custom JS docs? You could probably achieve something like an element which pops up another site in a modal (or similar) in JSX like that. The other approach that springs to mind is embedding the cl window in another page - however at that point you might be better off starting from the custom front end example and vibe coding a split screen UI.

francisjervis avatar Apr 25 '25 05:04 francisjervis

I end up having to fork the repo to be able to customize how I wanted. Thank you for your insights still @francisjervis

diogofranciscop avatar May 06 '25 15:05 diogofranciscop