diff --git a/app/views/page/seqcode.html.erb b/app/views/page/seqcode.html.erb index 6ac56c13..340900ea 100644 --- a/app/views/page/seqcode.html.erb +++ b/app/views/page/seqcode.html.erb @@ -20,7 +20,7 @@ $(this).attr('href', '#' + $(this).parent().attr('id')); }); $('#seqcode-down .link-to-id [name]').each(function(idx){ - $(this).siblings('.linker').attr('href', '#' + $(this).attr('name')); + $(this).siblings('.linker').attr('href', '#' + encodeURIComponent($(this).attr('name'))); }); // Smooth scrolling $(document).on('click', 'a[href^="#"]', function (event) {