mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed untranslated module pages showing up in the menu
This commit is contained in:
parent
95c4438091
commit
3d510a338e
|
|
@ -14,6 +14,7 @@
|
|||
* Fixed `onBlueprintCreated` event being called multiple times in `Flex Pages` [grav-plugin-flex-objects#97](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/97)
|
||||
* Fixed wrong ordering in page collections if `intl` extension has been enabled [#3167](https://github.com/getgrav/grav/issues/3167)
|
||||
* Fixed page redirect to the first visible child page (needs to be routable and published, too)
|
||||
* Fixed untranslated module pages showing up in the menu
|
||||
|
||||
# v1.7.3
|
||||
## 01/21/2021
|
||||
|
|
|
|||
|
|
@ -1751,8 +1751,9 @@ class Pages
|
|||
$path = $directory . DS . $filename;
|
||||
$child = $this->recurse($path, $page);
|
||||
|
||||
if (Utils::startsWith($filename, '_')) {
|
||||
if (preg_match('/^(\d+\.)_/', $filename)) {
|
||||
$child->routable(false);
|
||||
$child->modularTwig(true);
|
||||
}
|
||||
|
||||
$this->children[$page->path()][$child->path()] = ['slug' => $child->slug()];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user