Based upon the URL you’ve shared, it looks like you’re planning on redirecting back into the jira:globalPage?
This URL will be represented in a standard format as https://{instance-url}/jira/apps/{appId}/{environmentId}/{anythingYouWant}. In this case, you’ll be able to persist your production environmentId in this url.
The Forge bridge createHistory method will make it easier for your app to read and interact with the anythingYouWant component of the URL.