Skip to content

Commit 126509d

Browse files
committed
fix: wrong registry url when index.html is present (#225)
fixes #225
1 parent e1fd515 commit 126509d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/docker-registry-ui.riot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
107107
const registryUrl = props.registryUrl ||
108108
(props.singleRegistry === 'true' ? undefined : (router.getUrlQueryParam() || getRegistryServers(0))) ||
109109
(window.location.origin + window.location.pathname.replace(/\/+$/, ''));
110-
this.state.registryUrl = registryUrl.replace(/\/$/, '');
110+
this.state.registryUrl = registryUrl.replace(/\/$/, '').replace(/index(\.html?)?$/, '');
111111
this.state.name = props.name || stripHttps(props.registryUrl);
112112
this.state.catalogElementsLimit = props.catalogElementsLimit || 100000;
113113
this.state.pullUrl = this.pullUrl(this.state.registryUrl, props.pullUrl);

0 commit comments

Comments
 (0)