diff --git a/config/plugins/visualizations/common/templates/script_entry_point.mako b/config/plugins/visualizations/common/templates/script_entry_point.mako index 8895ff868a10..2837c717ad2f 100644 --- a/config/plugins/visualizations/common/templates/script_entry_point.mako +++ b/config/plugins/visualizations/common/templates/script_entry_point.mako @@ -13,6 +13,7 @@ <%def name="get_body()"> ## Collect incoming data <% data_incoming = { + "root": h.url_for("/"), "visualization_id": visualization_id, "visualization_name": visualization_name, "visualization_plugin": visualization_plugin, @@ -24,6 +25,7 @@
## Add script tag - <% src = script_attributes.get("src") %> - + <% script_src = script_attributes.get("src") %> + <% script_type = script_attributes.get("type") or "module" %> + diff --git a/lib/galaxy/visualization/plugins/config_parser.py b/lib/galaxy/visualization/plugins/config_parser.py index 85b1ccc79be9..160f52acef2c 100644 --- a/lib/galaxy/visualization/plugins/config_parser.py +++ b/lib/galaxy/visualization/plugins/config_parser.py @@ -221,7 +221,7 @@ def parse(self, xml_tree): # when no tests are given, default to isinstance( object, model_class ) returned["tests"] = self.parse_tests(xml_tree.findall("test")) - # to_params (optional, 0 or more) - tells the registry to set certain params based on the model_clas, tests + # to_params (optional, 0 or more) - tells the registry to set certain params based on the model_class, tests returned["to_params"] = {} if to_params := self.parse_to_params(xml_tree.findall("to_param")): returned["to_params"] = to_params