diff --git a/src/components/DockerLink.astro b/src/components/DockerLink.astro index e775817..d525149 100644 --- a/src/components/DockerLink.astro +++ b/src/components/DockerLink.astro @@ -7,7 +7,7 @@ } --- - + Docker: {Astro.props.title} @@ -18,8 +18,10 @@ class AstroDockerLink extends HTMLElement { connectedCallback() { + const href = this.dataset.link; + const host = window.location.hostname; - const url = `http://${host}:${WEB_PORT}`; + const url = `http://${host}:${WEB_PORT}/${href || ""}`; const anchor = this.querySelector("a");