tweaking getEnvironmentUrl
tweaking getEnvironmentUrl again
browser policy updates; environment url detection