Merge pull request #1242 from rizafahmi/fixing-invite-link

Add siteUrl in front of action link. The link is wrong
This commit is contained in:
Sacha Greif 2016-04-14 17:57:30 +09:00
commit 5fffd48103
2 changed files with 4 additions and 3 deletions

View file

@ -69,7 +69,8 @@ Meteor.methods({
communityName : communityName, communityName : communityName,
actionLink : user ? Telescope.utils.getSigninUrl() : Telescope.utils.getSignupUrl(), actionLink : user ? Telescope.utils.getSigninUrl() : Telescope.utils.getSignupUrl(),
invitedBy : Users.getDisplayName(currentUser), invitedBy : Users.getDisplayName(currentUser),
profileUrl : Users.getProfileUrl(currentUser) profileUrl : Users.getProfileUrl(currentUser),
siteUrl: Settings.get("siteUrl")
}; };
Meteor.setTimeout(function () { Meteor.setTimeout(function () {

View file

@ -3,9 +3,9 @@
</span><br><br> </span><br><br>
{{#if newUser}} {{#if newUser}}
<a href="{{actionLink}}">Join {{communityName}}</a> <a href="{{siteUrl}}{{actionLink}}">Join {{communityName}}</a>
{{else}} {{else}}
<a href="{{actionLink}}">Sign in to {{communityName}}</a> <a href="{{siteUrl}}{{actionLink}}">Sign in to {{communityName}}</a>
{{/if}} {{/if}}
<br><br> <br><br>