Use Page parameter to filter report embedded as a button

Use Page parameter to filter report embedded as a button

I have a Page for viewing information about a specific Project, it is filtered using a parameter proj_id

In the Page, I have used  Report > Embed as button to add a button to open another report in a new window, I want to filter this report on a field in the report called Project, using the proj_id parameter from the Page .

I can configure the Action element of the button to open the Project report, and have tried to configure the Query Parameters that are passed to the report, using Project=input.proj_id but when the report loads the query is passed as text and consequently the filter doesn't work.

How can I get this report filtered using the Page parameter?