diff --git a/app/assets/javascripts/discourse/templates/header.js.handlebars b/app/assets/javascripts/discourse/templates/header.js.handlebars
index ed85a469cd0..a41630353a6 100644
--- a/app/assets/javascripts/discourse/templates/header.js.handlebars
+++ b/app/assets/javascripts/discourse/templates/header.js.handlebars
@@ -99,49 +99,50 @@
{{render notifications notifications}}
{{#if view.renderSiteMap}}
-
-
-
- {{#if categories}}
-
- -
- {{#link-to "list.categories"}}{{i18n filters.categories.title}}{{/link-to}}
-
-
- {{#each categories}}
- -
- {{header-category-info category=this currentUser=controller.currentUser}}
+
-
- {{/if}}
+ {{#if categories}}
+
+ -
+ {{#link-to "list.categories"}}{{i18n filters.categories.title}}{{/link-to}}
+
+
+ {{#each categories}}
+ -
+ {{header-category-info category=this currentUser=controller.currentUser}}
+
+ {{/each}}
+
+ {{/if}}
+
+
+ {{/if}}
diff --git a/app/assets/javascripts/discourse/views/header_view.js b/app/assets/javascripts/discourse/views/header_view.js
index 7212809d5e8..e6d5be2c286 100644
--- a/app/assets/javascripts/discourse/views/header_view.js
+++ b/app/assets/javascripts/discourse/views/header_view.js
@@ -109,7 +109,8 @@ Discourse.HeaderView = Discourse.View.extend({
var headerView = this;
this.$('a[data-dropdown]').on('click.dropdown', function(e) {
- return headerView.showDropdown($(e.currentTarget));
+ headerView.showDropdown($(e.currentTarget));
+ return false;
});
this.$('a.unread-private-messages, a.unread-notifications, a[data-notifications]').on('click.notifications', function(e) {
headerView.showNotifications(e);