Skip to content

Commit 61c2293

Browse files
committed
Use branch name directly, instead of "latest"
Will allow to link directly to GH page url
1 parent 8974b47 commit 61c2293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

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

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

2828
return [

0 commit comments

Comments
 (0)