Skip to content

Go lang variables such as {{.SiteUrl}} not being gobally exposed to all email templates #2468

Closed

Description

@vonschappler

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Notification emails does not have access to possibly "global go-lang variables", such as {{ .SiteUrl}} and this causes notification emails to be incomplete or providing the wrong redirect url when we need them on those templates.

So I would kindly suggest that a review on which variables should be exposed globally to all email templates and add them.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create an email within the scope [auth.email.template.*]
  2. Create an email template within the scope [auth.email.notification.*]
  3. Add on both emails a logo to be displayed on them - hosted inside for example {{ .SiteUrl }}/logo
<link
  rel="preload"
  as="image"
  href="{{ .SiteURL }}/static/logo.png" />
  1. The logo (and or redirects that relies on {{ .SiteUrl }} is not added or linked correctly on both templates ([auth.email.template.*] show it correctly but [auth.email.notification.*] don't.

Expected behavior

{{ .SiteUrl }} and other global values should be exposed to all email templates available on Supabase.

Screenshots

  1. [auth.email.template.*] - has access to {{ .SiteUrl }}
Image
  1. [auth.email.notification.*] - does not have access to {{ .SiteUrl }}
Image

System information

  • OS: Windows
  • Browser chrome
  • Version of supabase-js: not using supabasejs, using @supabase/ssr version v0.9.0
  • Versopn of supabase-cli: 2.84.5 (as indicated by @singh-inder on discord support)
  • Version of Node.js: 24.1.0

Additional context

I opened this before as a feature request here and it was suggested to me to open the request as a bug.

Image

Activity

  1. added
    bug
    on Apr 7, 2026
  2. added a commit that references this issue on May 26, 2026
    dc015da
  3. cstockton commented on May 26, 2026

    @cstockton
    Contributor

    This has been fixed, thanks a lot for raising this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions