From f9e539ad88710d4849941e5116b9fcb462eb4310 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 16 Dec 2021 08:44:43 +0000 Subject: [PATCH] fix url in status --- app/handler/google.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/handler/google.go b/app/handler/google.go index 8429d87..604f71e 100644 --- a/app/handler/google.go +++ b/app/handler/google.go @@ -678,6 +678,10 @@ func (e *GoogleApp) Status(ctx context.Context, req *pb.StatusRequest, rsp *pb.S // no change in status and we have a pre-existing url if srv.Status == currentStatus && srv.Url == currentUrl && srv.Updated == updatedAt { + // set the custom domain + if len(e.domain) > 0 { + rsp.Service.Url = fmt.Sprintf("https://%s.%s", srv.Id, e.domain) + } return nil }