fix(sessions): open instance URL in new tab

Update handleOpen in SessionsPage to open the instance URL
in a new tab when available, instead of navigating to the
project page. Falls back to project navigation if no URL.
This commit is contained in:
Fusion
2026-05-20 14:28:09 +02:00
parent b40eb3e88c
commit e7804c0f58
+5 -1
View File
@@ -156,7 +156,11 @@ export const SessionsPage = () => {
};
const handleOpen = (session: Session) => {
navigate(`/projects/${session.project_name}/repositories/${session.repository_name}`);
if (session.url) {
window.open(session.url, '_blank', 'noopener,noreferrer');
} else {
navigate(`/projects/${session.project_id}`);
}
};
const handleResumeLast = async () => {