Open w00fz opened 3 years ago
@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.
We may also want to add support for returning all-relative paths? Or even to select if you want to use relative or absolute path in the modal...?
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: