diff --git a/components/tools/OmeroWeb/omeroweb/settings.py b/components/tools/OmeroWeb/omeroweb/settings.py
index c2b374d113b..00bd6e5bd85 100644
--- a/components/tools/OmeroWeb/omeroweb/settings.py
+++ b/components/tools/OmeroWeb/omeroweb/settings.py
@@ -675,6 +675,13 @@ def leave_none_unset_int(s):
" 'webtest/webclient_plugins/center_plugin.overlay.js.html',"
" 'channel_overlay_panel']``. "
"The javascript loads data into ``$('#div_id')``.")],
+ "omero.web.ui.external_link_baseurl":
+ ["WEB_EXTERNAL_LINK_BASEURL",
+ None,
+ identity,
+ ("Use this host (including protocol) for absolute HTML urls "
+ "in the client, such as social media links. This does not include "
+ "client-side generated URLs.")],
}
DEPRECATED_SETTINGS_MAPPINGS = {
diff --git a/components/tools/OmeroWeb/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html b/components/tools/OmeroWeb/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html
index 2e65d80f1cd..27a5415bd04 100644
--- a/components/tools/OmeroWeb/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html
+++ b/components/tools/OmeroWeb/omeroweb/webclient/templates/webclient/annotations/includes/toolbar.html
@@ -33,10 +33,12 @@
$(this).css('visibility', 'hidden');
}).hide();
+ {% if link_string %}
+ $("#link_info_popup_string").val(location.protocol + "//" + location.host + "{{ webclient_path }}?show={{ link_string }}");
+ {% endif %}
// We do this here and in batch_annotate panel
OME.initToolbarDropdowns();
-
});
@@ -54,11 +56,7 @@