This change updates the envToPath function so that switching between sandbox and production from a customer or product detail page always redirects to the respective list view instead of trying to preserve an ID that doesn’t exist in the other environment, preventing users from landing on broken or non-existent pages. It streamlines environment toggling and fixes issue #276, but the lack of added tests and reliance on simple regex patterns could lead to untested edge cases or unintended URL matches.

fix: redirect to customers list when switching environments - useautumn/autumn