From cbc4dc40bff744461db799d46cdb38ea8a298e3f Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sun, 22 Nov 2015 10:01:03 -0800 Subject: [PATCH] wire config.Url to news page for add to transmet link --- route_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route_handlers.go b/route_handlers.go index d4ab1e7..85afa3b 100644 --- a/route_handlers.go +++ b/route_handlers.go @@ -411,7 +411,7 @@ func newsFormHandler(w http.ResponseWriter, r *http.Request, user *user.User, se session.AddFlash("Error loading news", flash_err) } - ShowTemplate("news", w, r, map[string]interface{}{"user": user, "flashes": flashes, "news": news, "count": count, "categories": categories.CategoriesFlat}) + ShowTemplate("news", w, r, map[string]interface{}{"user": user, "flashes": flashes, "news": news, "count": count, "categories": categories.CategoriesFlat, "url": config.Url}) } func ServeFileHandler(res http.ResponseWriter, req *http.Request) {