From 7bf25b9513eb29112b909ea617af35280cacce50 Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Sun, 10 Dec 2023 20:28:31 -0500 Subject: [PATCH] Fix version - /5.0/ url were not working --- config/versions.yaml | 2 +- setup.php | 4 ++-- themes/sitetheme/templates/partials/github_link.html.twig | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) mode change 100755 => 100644 themes/sitetheme/templates/partials/github_link.html.twig diff --git a/config/versions.yaml b/config/versions.yaml index a19ab73e4..01410b338 100644 --- a/config/versions.yaml +++ b/config/versions.yaml @@ -1,5 +1,5 @@ branches: - 'latest': + '': path: '' label: '5.0' visible: true diff --git a/setup.php b/setup.php index 5c117fe32..05018fc19 100644 --- a/setup.php +++ b/setup.php @@ -18,11 +18,11 @@ // If no sites is selected, default to latest if (!$name || !is_dir(ROOT_DIR . "user/sites/{$name}")) { - $name = '5.0'; + $name = ''; } // Prefix all pages with the name of the subsite -$prefix = ($name === '5.0') ? '' : "/{$name}"; +$prefix = ($name === '') ? '' : "/{$name}"; $container['pages']->base($prefix); return [ diff --git a/themes/sitetheme/templates/partials/github_link.html.twig b/themes/sitetheme/templates/partials/github_link.html.twig old mode 100755 new mode 100644 index e749adb76..f5d966ce2 --- a/themes/sitetheme/templates/partials/github_link.html.twig +++ b/themes/sitetheme/templates/partials/github_link.html.twig @@ -1,3 +1,3 @@ - + {{ 'THEME_LEARN2_GITHUB_EDIT_THIS_PAGE'|t }}