Skip to content

Commit 04d94af

Browse files
author
Patrick Labbett
authored
Fix invalid version redirect
Fixes redirect when invalid docs version is specified
1 parent 720eaf4 commit 04d94af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/DocsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function showRootPage()
4545
public function show($version, $page = null)
4646
{
4747
if (! $this->isVersion($version)) {
48-
return redirect('docs/'.DEFAULT_VERSION.'/'.$version, 301);
48+
return redirect('docs/'.DEFAULT_VERSION.'/'.$page, 301);
4949
}
5050

5151
if (! defined('CURRENT_VERSION')) {

0 commit comments

Comments
 (0)