Block page: code refactoring and handling of alternatives host names. Refs #2866