How to restrict include page macro to the current space


I have a set of pages with the same name and in different spaces. While trying to include a page using “include page” macro, all pages from different spaces are retrieved which may confuse the user since there is no way to get the relevant one (from his perspective).

So the goal is to add a filter on space or at least on the current space.

Any idea how to achieve that behavior?