Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(search): shift+enter opens cmd+k result in new browser tab (#60525)

Christiaan Hendriksenf7ea93ac621f
diff --git a/frontend/src/lib/components/Search/Search.tsx b/frontend/src/lib/components/Search/Search.tsx
index de106ebc8d8a..1793e1b41801 100644
--- a/frontend/src/lib/components/Search/Search.tsx
+++ b/frontend/src/lib/components/Search/Search.tsx
@@ -27,7 +27,6 @@ import { ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuTrigger }
import { Label } from 'lib/ui/Label/Label'
import { WrappingLoadingSkeleton } from 'lib/ui/WrappingLoadingSkeleton/WrappingLoadingSkeleton'
import { cn } from 'lib/utils/css-classes'
-import { newInternalTab } from 'lib/utils/newInternalTab'
import { urls } from 'scenes/urls'
import { userLogic } from 'scenes/userLogic'
@@ -667,7 +666,7 @@ function SearchInput({ autoFocus, className }: SearchInputProps): JSX.Element {
e.stopPropagation()
const item = highlightedItemRef.current
if (item?.href) {
- newInternalTab(item.href)
+ window.open(item.href, '_blank', 'noopener,noreferrer')
}
}
if (e.key === 'Tab' && showAskAiLink && searchValue.trim()) {