mirror of
https://github.com/typemill/typemill.git
synced 2025-07-31 11:20:15 +02:00
v2.5.1 fix reference copy feature
This commit is contained in:
@@ -149,7 +149,7 @@ class ControllerWebFrontend extends Controller
|
||||
return $response->withHeader('Location', $metadata['meta']['reference'])->withStatus(301);
|
||||
break;
|
||||
case 'copy':
|
||||
$refpageinfo = $extendedNavigation[$metadata['meta']['reference']] ?? false;
|
||||
$refpageinfo = $navigation->getPageInfoForUrl($metadata['meta']['reference'], $urlinfo, $langattr);
|
||||
if(!$refpageinfo)
|
||||
{
|
||||
return $this->c->get('view')->render($response->withStatus(404), '404.twig', [
|
||||
|
Reference in New Issue
Block a user