diff --git a/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte b/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte index ec406bb05..68060c758 100644 --- a/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte +++ b/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte @@ -39,9 +39,9 @@ {/if} {* Hack for missing photos *} - {if $eventKey['fykos-year'] == 34} + {if $eventKey['year'] == 34}
- Tento ročník proběhl kvůli pandemii COVID-19 online. + Tento ročník proběhl kvůli pandemii COVID-19 online.
{/if} diff --git a/app/Modules/Dsef/DefaultModule/templates/Default/default.latte b/app/Modules/Dsef/DefaultModule/templates/Default/default.latte index fdf900caa..30b94d51d 100644 --- a/app/Modules/Dsef/DefaultModule/templates/Default/default.latte +++ b/app/Modules/Dsef/DefaultModule/templates/Default/default.latte @@ -60,7 +60,7 @@
Z minulých let
-

Nepřesvědčili jsme vás?

+

Stále váháte?

{control gallery:randomLine "/photos/front-page/"}
diff --git a/app/RouterFactory.php b/app/RouterFactory.php index 430adbf59..b1d31394f 100755 --- a/app/RouterFactory.php +++ b/app/RouterFactory.php @@ -166,6 +166,13 @@ public static function createDsefRouter(?array $domainList, array $routerMapping { $router = new RouteList(); + $router->withModule('Default') + ->addRoute('///[/]', [ + 'presenter' => 'Default', + 'action' => 'default', + null => self::useTranslateFilter($domainList, $routerMapping['default']), + ]); + $router->withModule('Archive') ->addRoute('/////[/[]]', [ 'presenter' => 'Default', @@ -194,18 +201,18 @@ public static function createFykosRouter(?array $domainList, array $routerMappin ]); $router->withModule('Default') - ->addRoute('///problems//', [ - 'presenter' => 'Problems', - 'action' => 'default', - null => self::useTranslateFilter($domainList, $routerMapping['default']), - ]); - - $router->addRoute('////[[/]]', [ - 'presenter' => 'Default', + ->addRoute('///problems//', [ + 'presenter' => 'Problems', 'action' => 'default', - null => self::useTranslateFilter($domainList, $routerMapping['events']), + null => self::useTranslateFilter($domainList, $routerMapping['default']), ]); + $router->addRoute('////[[/]]', [ + 'presenter' => 'Default', + 'action' => 'default', + null => self::useTranslateFilter($domainList, $routerMapping['events']), + ]); + $router->withModule('Default') ->addRoute('///[/]', [ 'presenter' => 'Default',