diff --git a/admin/templates/pages/dashboard.php b/admin/templates/pages/dashboard.php
index 2602d30..6ee80c8 100644
--- a/admin/templates/pages/dashboard.php
+++ b/admin/templates/pages/dashboard.php
@@ -56,7 +56,7 @@
| Site titel | = htmlspecialchars($siteConfig['site_title'] ?? 'CodePress') ?> |
| Standaard taal | = htmlspecialchars($siteConfig['language']['default'] ?? 'nl') ?> |
| Auteur | = htmlspecialchars($siteConfig['author']['name'] ?? '-') ?> |
- | CodePress versie | v= htmlspecialchars($stats['cms_version']) ?> |
+ | CodePress versie | = htmlspecialchars($stats['cms_version']) ?> |
| PHP versie | = $stats['php_version'] ?> |
| Besturingssysteem | = htmlspecialchars($stats['os']) ?> |
| Config geladen | = $stats['config_exists'] ? 'Ja' : 'Nee' ?> |
diff --git a/cms/core/class/CodePressCMS.php b/cms/core/class/CodePressCMS.php
index e9c291f..0ac408b 100644
--- a/cms/core/class/CodePressCMS.php
+++ b/cms/core/class/CodePressCMS.php
@@ -1066,7 +1066,7 @@ class CodePressCMS {
'author_git' => 'https://git.noorlander.info/E.Noorlander',
'seo_description' => $this->config['seo']['description'] ?? 'CodePress CMS - Lightweight file-based content management system',
'seo_keywords' => $this->config['seo']['keywords'] ?? 'cms, php, content management, file-based',
- 'cms_version' => ($this->config['show_version'] ?? true) && isset($this->config['version_info']) ? 'v' . $this->config['version_info']['version'] : '',
+ 'cms_version' => ($this->config['show_version'] ?? true) && isset($this->config['version_info']) ? $this->config['version_info']['version'] : '',
// Theme colors
'header_color' => $this->config['theme']['header_color'] ?? '#0d6efd',
'header_font_color' => $this->config['theme']['header_font_color'] ?? '#ffffff',
diff --git a/cms/router.php b/cms/router.php
index c40f24d..ace1ce4 100644
--- a/cms/router.php
+++ b/cms/router.php
@@ -40,9 +40,11 @@ if (preg_match('#^/admin(?:/(.+))?$#', $path, $m)) {
// Language-prefixed routes: /nl/page/path → index.php?lang=nl&page=page/path
if (preg_match('#^/(nl|en)(?:/(.+))?$#', $path, $m)) {
$_GET['lang'] = $m[1];
- $_GET['page'] = $m[2] ?? 'index';
- if ($_GET['page'] === 'guide') {
- $_GET['guide'] = '1';
+ if (isset($m[2]) && $m[2] !== '') {
+ $_GET['page'] = $m[2];
+ if ($_GET['page'] === 'guide') {
+ $_GET['guide'] = '1';
+ }
}
require $publicDir . '/index.php';
return true;