mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix(site): open View Workspace link in new window on agents page (#22578)
On the `/agents` page, the "View Workspace" link in the header dropdown menu was navigating in the same tab via `navigate()`. This changes it to `window.open(workspaceRoute, "_blank")` so it opens in a new browser window/tab instead. It's frustrating when I want to view my workspace and then I have to go back and find my chat.
This commit is contained in:
@@ -871,7 +871,7 @@ const AgentDetail: FC = () => {
|
||||
if (!workspaceRoute) {
|
||||
return;
|
||||
}
|
||||
navigate(workspaceRoute);
|
||||
window.open(workspaceRoute, "_blank");
|
||||
};
|
||||
|
||||
const handleOpenTerminal = () => {
|
||||
|
||||
Reference in New Issue
Block a user