diff --git a/core/styleguide/js/postmessage.js b/core/styleguide/js/postmessage.js index 68a754f..30f0270 100644 --- a/core/styleguide/js/postmessage.js +++ b/core/styleguide/js/postmessage.js @@ -34,7 +34,7 @@ if (self != top) { var target = this.getAttribute("target"); if ((target != undefined) && ((target == "_parent") || (target == "_blank"))) { // just do normal stuff - } else if (href != "#") { + } else if (href.length && href !== "#") { e.preventDefault(); window.location.replace(href); } else {