Static URL to be updated dynamically upon P2T refresh
Summary:
We see that, when there is a P2T refresh, we see that the Production URL was hardcoded and the same was cloned to test. When accessed from test, its redirecting to PROD causing issues.
Would like to check is there any environment variable that captures the instance url that needs to be used to overcome this issue. What is the best practice in such case where instance url to be used in sandbox.
For Eg: Customer has used Static URLs in DOR setup. When there is a P2T refresh, the Production URLs are getting updated in DOR's & links used in the application.