FIX: Support subfolder URLs for middle clicking search

This commit is contained in:
Robin Ward 2015-10-23 12:01:25 -04:00
parent 9483940244
commit f3d9d1295a
2 changed files with 4 additions and 4 deletions

View file

@ -4,9 +4,9 @@ export default Ember.Component.extend({
tagName: 'li',
classNameBindings: [':header-dropdown-toggle', 'active'],
@computed('showUser')
href(showUser) {
return showUser ? this.currentUser.get('path') : '';
@computed('showUser', 'path')
href(showUser, path) {
return showUser ? this.currentUser.get('path') : Discourse.getURL(path);
},
active: Ember.computed.alias('toggleVisible'),

View file

@ -22,7 +22,7 @@
mobileAction="fullPageSearch"
loginAction="showLogin"
title="search.title"
href="/search"}}
path="/search"}}
{{/header-dropdown}}
{{#header-dropdown iconId="toggle-hamburger-menu"