Skip to content

Commit f226317

Browse files
committed
fix: redirect /docs to default version
1 parent a3f8fc6 commit f226317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Web/Documentation/ChapterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#[Get('/docs/{path:.*}')]
2222
public function docsRedirect(string $path): Redirect
2323
{
24-
return new Redirect('/main/' . $path);
24+
return new Redirect(sprintf('/%s/%s', Version::default()->value, $path));
2525
}
2626

2727
#[Get('/docs')]

0 commit comments

Comments
 (0)