mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-19 00:48:08 +01:00
feat: add functionality to open conversation in a new tab on navigation
This commit is contained in:
parent
e8f8ab0ba0
commit
17e2e0eee5
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ export default function Conversation({
|
||||||
const handleNavigation = (ctrlOrMetaKey: boolean) => {
|
const handleNavigation = (ctrlOrMetaKey: boolean) => {
|
||||||
if (ctrlOrMetaKey) {
|
if (ctrlOrMetaKey) {
|
||||||
toggleNav();
|
toggleNav();
|
||||||
|
const baseUrl = window.location.origin;
|
||||||
|
const path = `/c/${conversationId}`;
|
||||||
|
window.open(baseUrl + path, '_blank');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue