map / marker / geoformat / chapter : remove preview panel button and redirect front to narrative - related to #21
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 24s

This commit is contained in:
isUnknown 2026-04-05 11:16:34 +02:00
parent bf877c23d2
commit 8a7d4832f0
9 changed files with 45 additions and 14 deletions

View file

@ -1 +1,5 @@
<h1><?= $page->title() ?></h1>
<?php
$redirectedTemplates = ['map', 'marker', 'geoformat', 'chapter'];
if (in_array($page->intendedTemplate(), $redirectedTemplates)) go($page->parents()->findBy('template', 'narrative')->url(), 301);