Skip to content

Commit 00dce26

Browse files
committed
chore: update documentation links to open in the same tab
1 parent 3e0bebe commit 00dce26

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

byllm/src/components/Header.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ 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"
3634
className="text-muted-foreground hover:text-foreground transition-colors"
3735
>
3836
Documentation

byllm/src/pages/Index.tsx

Lines changed: 5 additions & 7 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.open('https://docs.jaseci.org/learn/jac-byllm/with_llm/', '_blank')}
194+
onClick={() => (window.location.href = 'https://docs.jaseci.org/learn/jac-byllm/with_llm/')}
195195
>
196196
<BookOpen className="mr-2 h-4 w-4" />
197197
View Docs
@@ -631,8 +631,6 @@ 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"
636634
>
637635
<Button className="btn-hero text-lg px-8 py-4">
638636
<BookOpen className="mr-2 h-5 w-5" />
@@ -752,7 +750,7 @@ const Index = () => {
752750
</CardHeader>
753751
<CardContent className="p-4">
754752
<div className="flex justify-end">
755-
<Button variant="outline" onClick={() => window.open(t.repoLink, '_blank')}>
753+
<Button variant="outline" onClick={() => (window.location.href = t.repoLink)}>
756754
View Docs
757755
</Button>
758756
</div>
@@ -783,7 +781,7 @@ const Index = () => {
783781
<Card
784782
key={index}
785783
className="card-interactive group cursor-pointer overflow-hidden"
786-
onClick={() => window.open(example.link, '_blank')}
784+
onClick={() => (window.location.href = example.link)}
787785
>
788786
<div className="aspect-video overflow-hidden">
789787
<img
@@ -882,7 +880,7 @@ const Index = () => {
882880
<h4 className="font-semibold mb-4">Resources</h4>
883881
<ul className="space-y-2 text-sm">
884882
<li>
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">
883+
<a href="https://docs.jaseci.org/learn/jac-byllm/with_llm/" className="text-muted-foreground hover:text-primary transition-colors">
886884
Documentation
887885
</a>
888886
</li>
@@ -918,7 +916,7 @@ const Index = () => {
918916
</a>
919917
</li> */}
920918
<li>
921-
<a href="https://docs.jaseci.org/internals/contrib/" target="_blank" rel="noopener noreferrer" className="text-muted-foreground hover:text-primary transition-colors">
919+
<a href="https://docs.jaseci.org/internals/contrib/" className="text-muted-foreground hover:text-primary transition-colors">
922920
Contributing
923921
</a>
924922
</li>

0 commit comments

Comments
 (0)