You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently getLevelListing only supports absolute paths.
A bad 500 error happens when trying to load a relative path:
error: {type: "Error", message: "Maximum function nesting level of '256' reached, aborting!", code: 0,…}
code: 0
file: "/Users/djamil/Projects/grav/grav-core/system/src/Grav/Common/Flex/Types/Pages/PageIndex.php"
line: 340
message: "Maximum function nesting level of '256' reached, aborting!"
type: "Error"
Firs this error should be more graceful. But also there is nothing stopping us from supporting relative paths. The ajax call for the page picker already sends all the required information. Assuming we are editing /admin/my/page and we are trying to load the route ../other-page in the Page-Picker, this is how it goes:
@w00fz
Relative paths work now, except that the selected item is not highlighted because of ../other-page does not match anything. I added a new json variable called route, which contains the normalized version of the selected route.
Currently getLevelListing only supports absolute paths.
A bad 500 error happens when trying to load a relative path:
Firs this error should be more graceful. But also there is nothing stopping us from supporting relative paths. The ajax call for the page picker already sends all the required information. Assuming we are editing /admin/my/page and we are trying to load the route ../other-page in the Page-Picker, this is how it goes:
The text was updated successfully, but these errors were encountered: