diff --git a/javascript/TabSet.js b/javascript/TabSet.js index c09d4a4f4..2d30fcf58 100644 --- a/javascript/TabSet.js +++ b/javascript/TabSet.js @@ -24,6 +24,8 @@ */ rewriteHashlinks: function() { $(this).find('ul a').each(function() { + if (!$(this).attr('href')) return; + var matches = $(this).attr('href').match(/#.*/); if(!matches) return; $(this).attr('href', document.location.href.replace(/#.*/, '') + matches[0]);