From b85a3b2afeb803bb9ef9175912db6ed079ca3ac0 Mon Sep 17 00:00:00 2001 From: turegjorup Date: Tue, 15 Sep 2026 08:57:52 +0200 Subject: [PATCH 1/2] fix: match only the plain Host rule when resolving the project url --- scripts/itkdev-docker-compose | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/itkdev-docker-compose b/scripts/itkdev-docker-compose index 67a5f0d1..87e55473 100755 --- a/scripts/itkdev-docker-compose +++ b/scripts/itkdev-docker-compose @@ -597,7 +597,7 @@ case "$cmd" in # Get traefik host from label # https://stedolan.github.io/jq/manual/#test(val),test(regex;flags) # https://stedolan.github.io/jq/manual/#capture(val),capture(regex;flags) - traefik_host=$(docker inspect --format '{{ json .Config.Labels }}' $(docker_compose ps -q $service) | jq --raw-output '. | [to_entries[] | select(.key | test("^traefik\\.http\\.routers\\..+\\.rule$")) | select(.value | test("^Host\\(`(?.+)`\\)$"))] | first | .value//"" | capture("^Host\\(`(?.+)`\\)$") | .host//""') + traefik_host=$(docker inspect --format '{{ json .Config.Labels }}' $(docker_compose ps -q $service) | jq --raw-output '. | [to_entries[] | select(.key | test("^traefik\\.http\\.routers\\..+\\.rule$")) | select(.value | test("^Host\\(`[^`]+`\\)$"))] | first | .value//"" | capture("^Host\\(`(?[^`]+)`\\)$") | .host//""') fi if ! [ -z "$traefik_host" ]; then From d79009d727062e514ff00499845b2436b7e0e2c8 Mon Sep 17 00:00:00 2001 From: turegjorup Date: Tue, 15 Sep 2026 08:58:52 +0200 Subject: [PATCH 2/2] docs: add changelog entry for PR-152 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66a125fd..720da256 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ Changelog", this file is a reverse-chronological list of merged pull requests. ## Open PR's +- [PR-152](https://github.com/itk-dev/devops_itkdev-docker/pull/152) - 2026-09-15 - + Fixed `idc url` returning a malformed URL when a project has more than + one Traefik router, which left `idc open` on a blank tab - [PR-145](https://github.com/itk-dev/devops_itkdev-docker/pull/145) - 2026-07-08 - Updated GitHub Actions to latest versions (`actions/checkout` to `v7`, `go-task/setup-task` to `v2`) in workflow templates and repository CI