FIX: Make links work with subfolder installs.

This commit is contained in:
Guo Xiang Tan 2016-10-13 13:21:07 +08:00
parent 4f87f1886b
commit 2095b034ad

View File

@ -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];