I recently worked on a CTI application where when a call comes through, my app search for the customer in Freshdesk and if found, redirects the agent to that contact page using this method.
When this triggers locally, the app redirects me to the contact page by disabling the dev mode (removing dev=true from the url).
My suggestion would be, if the local app is redirecting, don’t remove this parameter from the url to replicate the exact behavior of production environment.