more of type will not go to fullpage search if looking at a topic

This commit is contained in:
Sam 2015-06-26 17:46:58 +10:00
parent 93b5af716c
commit c2aab0b1b8
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ export default Em.Controller.extend(Presence, {
actions: {
moreOfType: function(type) {
if (type === 'topic') {
if (type === 'topic' && this.get('searchContext.type') !== 'topic') {
var term = this.get('term');
// TODO in topic and in category special handling
Discourse.URL.routeTo("/search?q=" + encodeURIComponent(term));