Remove v prefix from version display, fix router default_page
This commit is contained in:
+5
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user