From 0abc5f90cdc8393d401785e29e7137b1dff1163c Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 30 Oct 2017 13:11:29 +0800 Subject: [PATCH] FIX: Broken link in new user of the month post. --- app/jobs/scheduled/grant_new_user_of_the_month_badges.rb | 6 +++++- config/locales/server.en.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb b/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb index be2b537f94f..c3db40fbf0f 100644 --- a/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb +++ b/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb @@ -22,7 +22,11 @@ module Jobs user = User.find(user_id) if user.badges.where(id: Badge::NewUserOfTheMonth).blank? BadgeGranter.grant(badge, user) - SystemMessage.new(user).create('new_user_of_the_month', month_year: Time.now.strftime("%B %Y")) + + SystemMessage.new(user).create('new_user_of_the_month', + month_year: Time.now.strftime("%B %Y"), + url: "#{Discourse.base_url}/badges" + ) end end end diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 7057e946d7e..cd740988d9d 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -2412,7 +2412,7 @@ en: text_body_template: | Congratulations, you've earned the **New User of the Month award for %{month_year}**. :trophy: - This award is only granted to two new users per month, and it will be permanently visible on [your user page](%{base_url}/my/badges). + This award is only granted to two new users per month, and it will be permanently visible on [the badges page](%{url}). You've quickly become a valuable member of our community. Thanks for joining, and keep up the great work!