diff --git a/app/assets/javascripts/my_modules/tags.js b/app/assets/javascripts/my_modules/tags.js index c922cbeab..2187ae738 100644 --- a/app/assets/javascripts/my_modules/tags.js +++ b/app/assets/javascripts/my_modules/tags.js @@ -148,7 +148,8 @@ $('#experimentTable, .my-modules-protocols-index, #experiment-canvas') .on('click', '.edit-tags-link', function() { if (window.tagsModal) { - window.tagsModal.open($(this).closest('.module-large').data('module-url')); + const url = $(this).closest('.module-large').data('module-url') || $(this).attr('href'); + window.tagsModal.open(url); } }); } diff --git a/app/views/my_modules/_tags.html.erb b/app/views/my_modules/_tags.html.erb index 2cc3bc244..962a036cd 100644 --- a/app/views/my_modules/_tags.html.erb +++ b/app/views/my_modules/_tags.html.erb @@ -1,6 +1,6 @@