message: Fix issue handling container registry url in UI
diff: @@ -65,12 +65,18 @@ const REGISTRIES: RegistryList = {
  const getRegistryData = (url: string): RegistryInfo => {
  let registryType: RegistryType = RegistryType.Unknown;
  - const urlToCheck = url.startsWith(OCI_PREFIX) ? url : `${OCI_PREFIX}${url}`;
  + // We use http as protocol to be sure that we get correct hostname
  + const urlToCheck = url.startsWith(OCI_PREFIX) ? url.replace(OCI_PREFIX, 'https://') : `https://${url}`;
  if (isValidURL(urlToCheck)) {
  const registryUrl = new URL(urlToCheck);
  const hostname = registryUrl.hostname;
  -
  + if (hostname === '') {
  + return {
  + ...REGISTRIES[registryType],
  + name: url,
  + };
  + } else {
  switch (true) {
  case /docker\.io/.test(hostname):
  registryType = RegistryType.Docker;
  @@ -106,6 +112,7 @@ const getRegistryData = (url: string): RegistryInfo => {
  }
  return registry;
  + }
  } else {
  return {
  ...REGISTRIES[registryType],
  