8
0
Fork 0

Fix bug reported in #169

Dieser Commit ist enthalten in:
Stéphane Goetz 2019-11-26 22:08:18 +01:00
Ursprung b2bd23005f
Commit 98acc7323f
1 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -189,8 +189,6 @@ class DauxHelper
continue;
}
$node = DauxHelper::slug(urldecode($node));
// if the node exists in the current request tree,
// change the $tree variable to reference the new
// node and proceed to the next url part
@ -199,6 +197,13 @@ class DauxHelper
continue;
}
// We try a second time by decoding the url
$node = DauxHelper::slug(urldecode($node));
if (isset($tree->getEntries()[$node])) {
$tree = $tree->getEntries()[$node];
continue;
}
// if the node doesn't exist, we can try
// two variants of the requested file:
// with and w/o the .html extension