How to filter data in Duplicate page

I am using the button with action to make duplicate pages. We can only pass the page name.

Please find the document below

I made the 2 tables

One is for projects and other is for task.

Now I want to make inner pages for task and I am looking for solution to show task in duplicate page related to that project.

How can we pass the project name as a filter to another page on button click.