aboutsummaryrefslogtreecommitdiff
path: root/views/default/likes/forms/link.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/likes/forms/link.php')
-rw-r--r--views/default/likes/forms/link.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/likes/forms/link.php b/views/default/likes/forms/link.php
index 34c2848d3..4e52224e2 100644
--- a/views/default/likes/forms/link.php
+++ b/views/default/likes/forms/link.php
@@ -9,7 +9,7 @@
if (isset($vars['entity']) && isloggedin()) {
$guid = $vars['entity']->getGuid();
- $url = elgg_add_action_tokens_to_url($vars['url'] . "action/likes/add?guid={$guid}");
+ $url = elgg_add_action_tokens_to_url(elgg_get_site_url() . "action/likes/add?guid={$guid}");
//check to see if the user has already liked
if (!elgg_annotation_exists($guid, 'likes') ) {
echo "<span class='river_link_divider'> | </span><a class='river_user_like_button link' href=\"{$url}\">" . elgg_echo('likes:likethis') . "</a>";