diff --git a/website/views/shared/modals/achievements.jade b/website/views/shared/modals/achievements.jade index 3c80558699..7030dde3ca 100644 --- a/website/views/shared/modals/achievements.jade +++ b/website/views/shared/modals/achievements.jade @@ -4,11 +4,11 @@ mixin achievementFooter .container-fluid .row.text-center .col-xs-4 - a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I earned a new achievement in Habitica!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/achievement&count=none')=env.t('tweet') + a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I earned a new achievement in Habitica!&via=habitica&url=#{env.BASE_URL}/social/achievement&count=none')=env.t('tweet') .col-xs-4 - .fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/achievement', data-layout='button') + .fb-share-button(data-href='#{env.BASE_URL}/social/achievement', data-layout='button') .col-xs-4 - a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/achievement', data-notes='none') + a.tumblr-share-button(data-href='#{env.BASE_URL}/social/achievement', data-notes='none') mixin achievementAvatar(badge,margin) .container-fluid diff --git a/website/views/shared/modals/hatch-pet.jade b/website/views/shared/modals/hatch-pet.jade index 2baf86f018..62ba70bb11 100644 --- a/website/views/shared/modals/hatch-pet.jade +++ b/website/views/shared/modals/hatch-pet.jade @@ -25,8 +25,8 @@ script(type='text/ng-template', id='modals/hatchPet.html') .container-fluid .row .col-xs-3 - a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just hatched a {{::hatchedPet.potion}} {{::hatchedPet.egg}} by completing my real-life tasks!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/hatch-pet&count=none')=env.t('tweet') + a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just hatched a {{::hatchedPet.potion}} {{::hatchedPet.egg}} by completing my real-life tasks!&via=habitica&url=#{env.BASE_URL}/social/hatch-pet&count=none')=env.t('tweet') .col-xs-4(style='margin-left:.8em') - .fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/hatch-pet', data-layout='button') + .fb-share-button(data-href='{env.BASE_URL}/social/hatch-pet', data-layout='button') .col-xs-4(style='margin-left:.8em') - a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/hatch-pet', data-notes='none') + a.tumblr-share-button(data-href='{env.BASE_URL}/social/hatch-pet', data-notes='none') diff --git a/website/views/shared/modals/level-up.jade b/website/views/shared/modals/level-up.jade index 43fdf73db3..256f199cd7 100644 --- a/website/views/shared/modals/level-up.jade +++ b/website/views/shared/modals/level-up.jade @@ -23,8 +23,8 @@ script(type='text/ng-template', id='modals/levelUp.html') .container-fluid .row .col-xs-3 - a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I got to Level {{::user.stats.lvl}} in Habitica by improving my real-life habits!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/level-up&count=none')=env.t('tweet') + a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I got to Level {{::user.stats.lvl}} in Habitica by improving my real-life habits!&via=habitica&url=#{env.BASE_URL}/social/level-up&count=none')=env.t('tweet') .col-xs-4(style='margin-left:.8em') - .fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/level-up', data-layout='button') + .fb-share-button(data-href='#{env.BASE_URL}/social/level-up', data-layout='button') .col-xs-4(style='margin-left:.8em') - a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/level-up', data-notes='none') + a.tumblr-share-button(data-href='#{env.BASE_URL}/social/level-up', data-notes='none') diff --git a/website/views/shared/modals/quests.jade b/website/views/shared/modals/quests.jade index 63197dc04b..f9f0a078d5 100644 --- a/website/views/shared/modals/quests.jade +++ b/website/views/shared/modals/quests.jade @@ -110,11 +110,11 @@ script(type='text/ng-template', id='modals/questDrop.html') .container-fluid .row .col-xs-3 - a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I unlocked the quest {{::selectedQuest.text()}} in Habitica!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/unlock-quest&count=none')=env.t('tweet') + a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I unlocked the quest {{::selectedQuest.text()}} in Habitica!&via=habitica&url=#{env.BASE_URL}/social/unlock-quest&count=none')=env.t('tweet') .col-xs-4(style='margin-left:.8em') - .fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/unlock-quest', data-layout='button') + .fb-share-button(data-href='#{env.BASE_URL}/social/unlock-quest', data-layout='button') .col-xs-4(style='margin-left:.8em') - a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/unlock-quest', data-notes='none') + a.tumblr-share-button(data-href='#{env.BASE_URL}/social/unlock-quest', data-notes='none') script(type='text/ng-template', id='modals/ownedQuests.html') .modal-header diff --git a/website/views/shared/modals/raise-pet.jade b/website/views/shared/modals/raise-pet.jade index ba6be7eae5..eb3e5015b7 100644 --- a/website/views/shared/modals/raise-pet.jade +++ b/website/views/shared/modals/raise-pet.jade @@ -25,8 +25,8 @@ script(type='text/ng-template', id='modals/raisePet.html') .container-fluid .row .col-xs-3 - a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just raised a {{::raisedPet.displayName}} mount by completing my real-life tasks!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/raise-pet&count=none')=env.t('tweet') + a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just raised a {{::raisedPet.displayName}} mount by completing my real-life tasks!&via=habitica&url=#{env.BASE_URL}/social/raise-pet&count=none')=env.t('tweet') .col-xs-4(style='margin-left:.8em') - .fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/raise-pet', data-layout='button') + .fb-share-button(data-href='#{env.BASE_URL}/social/raise-pet', data-layout='button') .col-xs-4(style='margin-left:.8em') - a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/raise-pet', data-notes='none') + a.tumblr-share-button(data-href='#{env.BASE_URL}/social/raise-pet', data-notes='none') diff --git a/website/views/shared/modals/won-challenge.jade b/website/views/shared/modals/won-challenge.jade index e5af481f48..1a3950001b 100644 --- a/website/views/shared/modals/won-challenge.jade +++ b/website/views/shared/modals/won-challenge.jade @@ -30,8 +30,8 @@ script(type='text/ng-template', id='modals/wonChallenge.html') .container-fluid .row .col-xs-3 - a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just won the Challenge {{::user.achievements.challenges[user.achievements.challenges.length - 1]}} in Habitica!&via=habitica&url=https://habitrpg-gamma.herokuapp.com/social/won-challenge&count=none')=env.t('tweet') + a.twitter-share-button(href='https://twitter.com/intent/tweet?text=I just won the Challenge {{::user.achievements.challenges[user.achievements.challenges.length - 1]}} in Habitica!&via=habitica&url=#{env.BASE_URL}/social/won-challenge&count=none')=env.t('tweet') .col-xs-4(style='margin-left:.8em') - .fb-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/won-challenge', data-layout='button') + .fb-share-button(data-href='#{env.BASE_URL}/social/won-challenge', data-layout='button') .col-xs-4(style='margin-left:.8em') - a.tumblr-share-button(data-href='https://habitrpg-gamma.herokuapp.com/social/won-challenge', data-notes='none') + a.tumblr-share-button(data-href='#{env.BASE_URL}/social/won-challenge', data-notes='none')