aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/embed/link.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed/views/default/embed/link.php')
-rw-r--r--mod/embed/views/default/embed/link.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/embed/views/default/embed/link.php b/mod/embed/views/default/embed/link.php
index c4fae0d42..4ed193047 100644
--- a/mod/embed/views/default/embed/link.php
+++ b/mod/embed/views/default/embed/link.php
@@ -10,5 +10,10 @@ if (elgg_is_active_plugin('ecml')) {
$active_section = '';
}
+$url = "pg/embed/?{$active_section}internal_name={$vars['internalname']}";
+$url = elgg_normalize_url($url);
+
?>
-<a class="elgg-longtext-control small link" href="<?php echo elgg_get_site_url() . 'pg/embed'; ?>?<?php echo $active_section; ?>internal_name=<?php echo $vars['internalname']; ?>" rel="facebox"><?php echo elgg_echo('media:insert'); ?></a>
+<a class="elgg-longtext-control" href="<?php echo $url; ?>" rel="facebox">
+ <?php echo elgg_echo('media:insert'); ?>
+</a>