Skip to content

Commit 3e0bebe

Browse files
committed
chore(byllm): revert docs links to open in new tab
1 parent 97a9d1a commit 3e0bebe

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

byllm/src/components/Header.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const Header: React.FC = () => {
3131
</a>
3232
<a
3333
href="https://docs.jaseci.org/learn/jac-byllm/with_llm/"
34+
target="_blank"
35+
rel="noopener noreferrer"
3436
className="text-muted-foreground hover:text-foreground transition-colors"
3537
>
3638
Documentation

byllm/src/pages/Index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const Index = () => {
191191
View on GitHub
192192
</Button>
193193
<Button className="btn-hero group"
194-
onClick={() => (window.location.href = 'https://docs.jaseci.org/learn/jac-byllm/with_llm/')}
194+
onClick={() => window.open('https://docs.jaseci.org/learn/jac-byllm/with_llm/', '_blank')}
195195
>
196196
<BookOpen className="mr-2 h-4 w-4" />
197197
View Docs
@@ -631,6 +631,8 @@ const Index = () => {
631631
<h2 className="text-section mb-4">Ready to dive deeper?</h2>
632632
<a
633633
href="https://docs.jaseci.org/learn/jac-byllm/with_llm/"
634+
target="_blank"
635+
rel="noopener noreferrer"
634636
>
635637
<Button className="btn-hero text-lg px-8 py-4">
636638
<BookOpen className="mr-2 h-5 w-5" />
@@ -750,7 +752,7 @@ const Index = () => {
750752
</CardHeader>
751753
<CardContent className="p-4">
752754
<div className="flex justify-end">
753-
<Button variant="outline" onClick={() => (window.location.href = t.repoLink)}>
755+
<Button variant="outline" onClick={() => window.open(t.repoLink, '_blank')}>
754756
View Docs
755757
</Button>
756758
</div>
@@ -781,7 +783,7 @@ const Index = () => {
781783
<Card
782784
key={index}
783785
className="card-interactive group cursor-pointer overflow-hidden"
784-
onClick={() => (window.location.href = example.link)}
786+
onClick={() => window.open(example.link, '_blank')}
785787
>
786788
<div className="aspect-video overflow-hidden">
787789
<img
@@ -880,7 +882,7 @@ const Index = () => {
880882
<h4 className="font-semibold mb-4">Resources</h4>
881883
<ul className="space-y-2 text-sm">
882884
<li>
883-
<a href="https://docs.jaseci.org/learn/jac-byllm/with_llm/" className="text-muted-foreground hover:text-primary transition-colors">
885+
<a href="https://docs.jaseci.org/learn/jac-byllm/with_llm/" target="_blank" rel="noopener noreferrer" className="text-muted-foreground hover:text-primary transition-colors">
884886
Documentation
885887
</a>
886888
</li>
@@ -916,7 +918,7 @@ const Index = () => {
916918
</a>
917919
</li> */}
918920
<li>
919-
<a href="https://docs.jaseci.org/internals/contrib/" className="text-muted-foreground hover:text-primary transition-colors">
921+
<a href="https://docs.jaseci.org/internals/contrib/" target="_blank" rel="noopener noreferrer" className="text-muted-foreground hover:text-primary transition-colors">
920922
Contributing
921923
</a>
922924
</li>

0 commit comments

Comments
 (0)