From e3c9ce98b8cdfe24ac26044f161d185c8a5bbd38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Tue, 30 Jun 2015 15:50:42 +0200 Subject: [PATCH] Use the right entry page --- libs/Format/HTML/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Format/HTML/Generator.php b/libs/Format/HTML/Generator.php index 34696d2..32369b1 100644 --- a/libs/Format/HTML/Generator.php +++ b/libs/Format/HTML/Generator.php @@ -31,7 +31,7 @@ class Generator $params['theme'] = DauxHelper::getTheme($params, $base_url); $params['image'] = str_replace('', $base_url, $params['image']); - if ($base_url !== '') { + if ($base_url !== '' && empty($params['entry_page'])) { $params['entry_page'] = $tree->getFirstPage(); } foreach ($tree->value as $key => $node) {