Plugin access URL project.key vs projectKey


We have started recently developing plugin for Jira cloud and run in to the following issue, we have done a sample agile report

when we access the report …it will be via the following URL
But the left menu will change to a general menu rather than the project menu

But if I change the url parameter to “projectKey” it shows the proper project menu on the left.

How can I instruct to keep the project menu or change the parameter from project.key to projectKey ?