Fix bug: /register-provider.html couldn't access /environment