Fix bug reported in #169
This commit is contained in:
parent
b2bd23005f
commit
98acc7323f
@ -189,8 +189,6 @@ class DauxHelper
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$node = DauxHelper::slug(urldecode($node));
|
|
||||||
|
|
||||||
// if the node exists in the current request tree,
|
// if the node exists in the current request tree,
|
||||||
// change the $tree variable to reference the new
|
// change the $tree variable to reference the new
|
||||||
// node and proceed to the next url part
|
// node and proceed to the next url part
|
||||||
@ -199,6 +197,13 @@ class DauxHelper
|
|||||||
continue;
|
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
|
// if the node doesn't exist, we can try
|
||||||
// two variants of the requested file:
|
// two variants of the requested file:
|
||||||
// with and w/o the .html extension
|
// with and w/o the .html extension
|
||||||
|
Loading…
Reference in New Issue
Block a user