Skip to content

fix malformed url in confirmation email - #2

Merged
ognev-dev merged 1 commit into
goplease-game:mainfrom
MasRama:fix-confirm-email-url
Jul 23, 2026
Merged

fix malformed url in confirmation email#2
ognev-dev merged 1 commit into
goplease-game:mainfrom
MasRama:fix-confirm-email-url

Conversation

@MasRama

@MasRama MasRama commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The confirmation email link comes through as https:/game.gopl.dev/... (single slash), so clicking it doesn't work.

email/confirm_email.go was building the URL with path.Join(app.Config().Server.Addr, "/users/confirm-email/"), and path.Join collapses the // after the scheme into a single /.

Switched it to app.ServerURL("/users/confirm-email/"), which is what the other email templates (changes_approved, changes_rejected) already use. That keeps the absolute URL intact.

Closes #1

@ognev-dev
ognev-dev merged commit 7c54e0b into goplease-game:main Jul 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URL in emails is malformed

2 participants