diff --git a/html/handler.go b/html/handler.go index a469fb84..51cd6d02 100644 --- a/html/handler.go +++ b/html/handler.go @@ -20,7 +20,8 @@ func MakeGet[T any](f handlerFunctionGet[T]) http.HandlerFunc { return } RenderOrError(w, resp.Template, Content[T]{ - C: resp.Content, + C: resp.Content, + URL: NewContentURL(), }) } } diff --git a/html/template/rmo/mailer.html b/html/template/rmo/mailer.html index bf20ffc3..9e0b4c91 100644 --- a/html/template/rmo/mailer.html +++ b/html/template/rmo/mailer.html @@ -126,11 +126,14 @@
- + Correct Update Location diff --git a/html/url.go b/html/url.go index 1b0475d1..ee4fcc63 100644 --- a/html/url.go +++ b/html/url.go @@ -21,6 +21,7 @@ func NewContentURL() ContentURL { return ContentURL{ Configuration: newContentURLConfiguration(), OAuthRefreshArcGIS: config.MakeURLNidus("/arcgis/oauth/begin"), + RMO: newContentURLRMO(), Root: config.MakeURLNidus("/"), Route: config.MakeURLNidus("/route"), Sidebar: newContentURLSidebar(), diff --git a/rmo/mailer.go b/rmo/mailer.go index 3444509a..b9efaacb 100644 --- a/rmo/mailer.go +++ b/rmo/mailer.go @@ -23,7 +23,8 @@ type address struct { Country string `db:"country"` } type contentMailer struct { - Address address + Address address + PublicID string } func getMailer(ctx context.Context, r *http.Request) (*html.Response[contentMailer], *nhttp.ErrorWithStatus) { @@ -60,7 +61,8 @@ func getMailer(ctx context.Context, r *http.Request) (*html.Response[contentMail } return html.NewResponse( "rmo/mailer.html", contentMailer{ - Address: report, + Address: report, + PublicID: public_id, }, ), nil