Skip to content

Commit

Permalink
Use branch name directly, instead of "latest"
Browse files Browse the repository at this point in the history
Will allow to link directly to GH page url
  • Loading branch information
lcharette committed Dec 10, 2023
1 parent 8974b47 commit 61c2293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

// If no sites is selected, default to latest
if (!$name || !is_dir(ROOT_DIR . "user/sites/{$name}")) {
$name = 'latest';
$name = '5.0';
}

// Prefix all pages with the name of the subsite
$prefix = ($name === 'latest') ? '' : "/{$name}";
$prefix = ($name === '5.0') ? '' : "/{$name}";
$container['pages']->base($prefix);

return [
Expand Down

0 comments on commit 61c2293

Please sign in to comment.