mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 16:04:22 -05:00
FIX: Support subfolder URLs for middle clicking search
This commit is contained in:
parent
9483940244
commit
f3d9d1295a
2 changed files with 4 additions and 4 deletions
|
@ -4,9 +4,9 @@ export default Ember.Component.extend({
|
||||||
tagName: 'li',
|
tagName: 'li',
|
||||||
classNameBindings: [':header-dropdown-toggle', 'active'],
|
classNameBindings: [':header-dropdown-toggle', 'active'],
|
||||||
|
|
||||||
@computed('showUser')
|
@computed('showUser', 'path')
|
||||||
href(showUser) {
|
href(showUser, path) {
|
||||||
return showUser ? this.currentUser.get('path') : '';
|
return showUser ? this.currentUser.get('path') : Discourse.getURL(path);
|
||||||
},
|
},
|
||||||
|
|
||||||
active: Ember.computed.alias('toggleVisible'),
|
active: Ember.computed.alias('toggleVisible'),
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
mobileAction="fullPageSearch"
|
mobileAction="fullPageSearch"
|
||||||
loginAction="showLogin"
|
loginAction="showLogin"
|
||||||
title="search.title"
|
title="search.title"
|
||||||
href="/search"}}
|
path="/search"}}
|
||||||
{{/header-dropdown}}
|
{{/header-dropdown}}
|
||||||
|
|
||||||
{{#header-dropdown iconId="toggle-hamburger-menu"
|
{{#header-dropdown iconId="toggle-hamburger-menu"
|
||||||
|
|
Loading…
Reference in a new issue