Skip to content

Commit 92b5858

Browse files
committed
Fix: /browse/ 404 — link directly to /browse/index.html
VitePress SPA router intercepts /browse/ and shows 404 since no matching .md route exists. The static file at public/browse/index.html only serves on direct browser request. Fix by linking to the explicit path so VitePress doesn't try to SPA-route it.
1 parent c9bb8a2 commit 92b5858

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/.vitepress/config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default withMermaid(defineConfig({
3333
{
3434
text: 'Ontology',
3535
items: [
36-
{ text: 'Browse Ontology', link: '/browse/' },
36+
{ text: 'Browse Ontology', link: '/browse/index.html' },
3737
{ text: 'v3.6 (TTL)', link: '/ontology/v3.6/' },
3838
{ text: 'v3.5-alpha6 (TTL)', link: '/ontology/v3.5-alpha6/' },
3939
{ text: 'v3.5-alpha3 (TTL)', link: '/ontology/v3.5-alpha3/' },
@@ -145,7 +145,7 @@ export default withMermaid(defineConfig({
145145
{
146146
text: 'Ontology Files',
147147
items: [
148-
{ text: 'Browse Ontology', link: '/browse/' },
148+
{ text: 'Browse Ontology', link: '/browse/index.html' },
149149
{ text: 'v3.6 (Turtle)', link: '/ontology/v3.6/' },
150150
{ text: 'v3.5-alpha6 (Turtle)', link: '/ontology/v3.5-alpha6/' },
151151
]

0 commit comments

Comments
 (0)