From 2095b034ad18174d2856be50d62614f4d6ea7936 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 13 Oct 2016 13:21:07 +0800 Subject: [PATCH] FIX: Make links work with subfolder installs. --- app/assets/javascripts/discourse/widgets/header.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6 index c7c42e5c73c..80dc5b0f92e 100644 --- a/app/assets/javascripts/discourse/widgets/header.js.es6 +++ b/app/assets/javascripts/discourse/widgets/header.js.es6 @@ -102,7 +102,7 @@ createWidget('header-icons', { contents() { if (!attrs.flagCount) { return; } return this.attach('link', { - href: '/admin/flags/active', + href: Discourse.getURL('/admin/flags/active'), title: 'notifications.total_flagged', rawLabel: attrs.flagCount, className: 'badge-notification flagged-posts' @@ -116,7 +116,7 @@ createWidget('header-icons', { iconId: 'search-button', action: 'toggleSearchMenu', active: attrs.searchVisible, - href: '/search' + href: Discourse.getURL('/search') }); const icons = [search, hamburger];