Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

fix(studio): open tour ReadMore links in new tab (#4694)

Daniel Hanfe6609a6244d
diff --git a/studio/frontend/src/features/tour/components/read-more.tsx b/studio/frontend/src/features/tour/components/read-more.tsx
index 77680a869c6..13210c77233 100644
--- a/studio/frontend/src/features/tour/components/read-more.tsx
+++ b/studio/frontend/src/features/tour/components/read-more.tsx
@@ -1,10 +1,15 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+const EXTERNAL_URL_RE = /^https?:\/\//;
+
export function ReadMore({ href = "#" }: { href?: string }) {
+ const isExternal = EXTERNAL_URL_RE.test(href);
return (
<a
href={href}
+ target={isExternal ? "_blank" : undefined}
+ rel={isExternal ? "noopener noreferrer" : undefined}
onClick={(e) => {
if (href === "#") e.preventDefault();
}}