Add siteUrl in front of action link. The link is wrong

This commit is contained in:
Riza Fahmi 2016-02-09 18:26:14 +07:00
parent 6f14abd296
commit fa894db0b3
2 changed files with 4 additions and 3 deletions

View file

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

View file

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