Closed
Description
I want to access some of the metadata of the current page from a rest plugin and I can't find a way to get the current page in self.state.
I found out that by adding a reference to the "source" path when calling the rest compiler, I can retrieve it as self.state.document.settings._source, then find a matching page. Is it a good solution? Could this (or something similar) be integrated in the default rest compiler?