Skip to content

Commit 9864a60

Browse files
committed
Fixing base path slash issue
1 parent 4931454 commit 9864a60

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
"current": "$CURRENT_VERSION",
5454
"versions": [
5555
{ "version": "$CURRENT_VERSION", "label": "$CURRENT_VERSION (Latest)", "path": "/" },
56-
{ "version": "0.6.3", "label": "0.6.3", "path": "/v0.6.3/" }
56+
{ "version": "0.6.3", "label": "0.6.3", "path": "/v0.6.3/docs" }
5757
]
5858
}
5959
EOF

docs/.vitepress/config.mts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ import {
99

1010
import versions from './versions.json'
1111

12-
// Build version dropdown items
12+
// Build version dropdown items with absolute URLs for cross-version navigation
13+
// This forces full page reload instead of client-side routing
1314
const versionItems = versions.versions.map(v => ({
1415
text: v.label,
15-
link: v.path
16+
link: v.path.startsWith('/v')
17+
? `https://docs.activeagents.ai${v.path}`
18+
: v.path
1619
}))
1720

1821
// Support versioned builds via VITEPRESS_BASE env var

docs/.vitepress/versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
{
1111
"version": "0.6.3",
12-
"label": "0.6.3 (Stable)",
13-
"path": "/v0.6.3/",
12+
"label": "0.6.3",
13+
"path": "/v0.6.3/docs",
1414
"tag": "v0.6.3"
1515
}
1616
]

0 commit comments

Comments
 (0)