Would appreciate any assistance of how to handle configurable URLs for each environment.
The links need to take the user to a different URL depending on the environment the site is installed in. In test environment, they would go to the test site, in beta test environment, beta site. And in production, production.
Currently I am calling the test url by h ref in the body text. However, when the site is moved to beta, I would have to manually change the url to the beta url and so forth. I have about 50 of these type of URLs throughout my site so I am looking for a automated way.
I have thought about using
https://www.drupal.org/project/scanner https://www.drupal.org/node/257026#example-use-cases
But open to any suggestions or experience.
Many thanks in advance!
Mike
print $base_url . 'rest/of/url/here';
I believe $base_url should change automatically assuming you never changed it in settings.php