diff --git a/classes/handler/AboutHandler.php b/classes/handler/AboutHandler.php index f28be66..2721cec 100644 --- a/classes/handler/AboutHandler.php +++ b/classes/handler/AboutHandler.php @@ -2,13 +2,13 @@ namespace handler; +use RedirectResponse; use Response; class AboutHandler extends \RequestHandler { public function get(): Response { - $this->skin->title = $this->lang['contacts']; - return $this->skin->renderPage('main/contacts'); + return new RedirectResponse('/contacts/'); } } \ No newline at end of file diff --git a/htdocs/index.php b/htdocs/index.php index fa8b6cb..134bc8a 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -8,6 +8,7 @@ $r = (new Router()) ->add('/', 'index') ->add('([a-zA-Z0-9\-]+)/', 'auto name=$(1)') ->add('feed.rss', 'RSS') + ->add('about/', 'about') //->add('articles/', 'articles') ->add('articles/write/', 'admin/post_add') diff --git a/skin/base.phps b/skin/base.phps index 91405a8..3756682 100644 --- a/skin/base.phps +++ b/skin/base.phps @@ -189,7 +189,7 @@ function renderHeader(SkinContext $ctx, string $theme): string { $items = [ //['url' => '/articles/', 'label' => 'articles'], ['url' => 'https://files.4in1.ws', 'label' => 'materials'], - ['url' => '/about/', 'label' => 'about'] + ['url' => '/contacts/', 'label' => 'contacts'] ]; if (\admin::isAdmin()) $items[] = ['url' => '/admin/', 'label' => $ctx->renderSettingsIcon(), 'type' => 'settings'];