From e793e9c4e3cd5e4090ad3d1d592605a040058cf8 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Sun, 24 May 2020 09:51:34 +1000 Subject: [PATCH] [BUGFIX] Add path to generated links for emails (#1045) --- internal/middlewares/identity_verification.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/middlewares/identity_verification.go b/internal/middlewares/identity_verification.go index 9bdb0094..7039d55c 100644 --- a/internal/middlewares/identity_verification.go +++ b/internal/middlewares/identity_verification.go @@ -61,8 +61,8 @@ func IdentityVerificationStart(args IdentityVerificationStartArgs) RequestHandle return } - link := fmt.Sprintf("%s://%s%s?token=%s", ctx.XForwardedProto(), - ctx.XForwardedHost(), args.TargetEndpoint, ss) + link := fmt.Sprintf("%s://%s%s%s?token=%s", ctx.XForwardedProto(), + ctx.XForwardedHost(), ctx.Configuration.Server.Path, args.TargetEndpoint, ss) params := map[string]interface{}{ "title": args.MailTitle,