From 7345bda611772386583fdad487d0c438d249a552 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 7 Sep 2025 22:05:47 -0400 Subject: [PATCH] fix: properly generate urls for port 443 for non-https schemes --- plugins/domains/internal-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/domains/internal-functions b/plugins/domains/internal-functions index e839d2f27..efc644d10 100755 --- a/plugins/domains/internal-functions +++ b/plugins/domains/internal-functions @@ -167,7 +167,11 @@ fn-domains-generate-url() { if [[ "$PORT" == "80" ]]; then echo "http://$VHOST" elif [[ "$PORT" == "443" ]]; then - echo "https://$VHOST" + if [[ "$SCHEME" == "https" ]]; then + echo "https://$VHOST" + else + echo "$SCHEME://$VHOST:$PORT" + fi else echo "$SCHEME://$VHOST:$PORT" fi