From 126509d7fa9869fb7963fcb81592320713ffc24f Mon Sep 17 00:00:00 2001 From: Joxit Date: Fri, 11 Mar 2022 19:56:26 +0100 Subject: [PATCH] fix: wrong registry url when index.html is present (#225) fixes #225 --- src/components/docker-registry-ui.riot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot index 66da81c..8ed1b18 100644 --- a/src/components/docker-registry-ui.riot +++ b/src/components/docker-registry-ui.riot @@ -107,7 +107,7 @@ along with this program. If not, see . const registryUrl = props.registryUrl || (props.singleRegistry === 'true' ? undefined : (router.getUrlQueryParam() || getRegistryServers(0))) || (window.location.origin + window.location.pathname.replace(/\/+$/, '')); - this.state.registryUrl = registryUrl.replace(/\/$/, ''); + this.state.registryUrl = registryUrl.replace(/\/$/, '').replace(/index(\.html?)?$/, ''); this.state.name = props.name || stripHttps(props.registryUrl); this.state.catalogElementsLimit = props.catalogElementsLimit || 100000; this.state.pullUrl = this.pullUrl(this.state.registryUrl, props.pullUrl);