Skip to content

Commit

Permalink
More legacy redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Aug 23, 2024
1 parent 0116012 commit e500108
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/kosmos/20240227_86/kosmos-issue.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ In [One minute installation with Laravel Herd](https://www.youtube.com/watch?v=M

And we also have a new cookbook recipe:

[Kirby meets DDEV,](https://getkirby.com/docs/cookbook/setup/ddevhttps://getkirby.com/docs/cookbook/setup/ddev "https://getkirby.com/docs/cookbook/setup/ddev") a Docker-based local development environment, also very easy to set up on Mac, Linux and Windows.
[Kirby meets DDEV,](https://getkirby.com/docs/cookbook/development-deployment/ddev) a Docker-based local development environment, also very easy to set up on Mac, Linux and Windows.

## Kirby plugins

Expand Down
27 changes: 27 additions & 0 deletions site/routes/legacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,32 @@
[
'pattern' => 'docs/cookbook/content-representations/load-more-with-ajax',
'action' => fn () => go('docs/cookbook/content-representations/ajax-load-more')
],
[
'pattern' => 'docs/cookbook/setup/ddev',
'action' => fn () => go('docs/cookbook/development-deployment/ddev')
],
[
'pattern' => [
'docs/cheatsheet/(:any)/(:any)',
'docs/reference/(:any)/(:any)',
'docs/reference/objects/(:any)/(:any)',
'docs/reference/tools/(:any)/(:any)'
],
'action' => function (string $object, string $method) {
if ($page = page('docs/reference/objects/cms/' . $object . '/' . $method)) {
go($page);
}

if ($page = page('docs/reference/objects/toolkit/' . $object . '/' . $method)) {
go($page);
}

if ($page = page('docs/reference/objects/http/' . $object . '/' . $method)) {
go($page);
}

$this->next();
}
]
];

0 comments on commit e500108

Please sign in to comment.