code: private Map<String, String> getEnvironmentAttributes() {
      Map<String, String> environmentAttributes = new HashMap<>();
      environmentAttributes.put(ATTRIBUTE_ENVIRONMENT_TYPE, environment);
      return environmentAttributes;
    }
docs: Make sure Spring does not add the attributes as query parameters to the url when doing a
  redirect. You can do this by introducing an object instead of a string key value pair.
  
  <p>See <a
  href="https://github.com/molgenis/molgenis/issues/6515">https://github.com/molgenis/molgenis/issues/6515</a>
  
  @return environmentAttributeMap