Are there "Forum" redirectors?


(Rodrigo Farcas) #1

In the former software we used, there was this kind of forums, which redirects the user to a specified URL. Does discourse have this or something similar?


(Tarak'ha) #2

You mean a separate page that says “You are now leaving the forum to [url]” and then redirects? Discourse does not have that. I don’t think there are plans to have that in core, either. Probably a plugin feature at best.


(Zack) #3

I think he means on the category page. So like in vB or IPB, you could make a “forum” which is actually an external link. So here you would have.

  • releases > goes to /c/releases
  • bugs > goes to /c/bugs
  • google > goes to www.google.com

(Rodrigo Farcas) #4

Yep, that is what I need.


(Kane York) #6

You could add a header to do that, or add a “topnav” item above the Latest list.

Here’s Meta’s customization for the Bugs and Features topnav items:

 Discourse.ExternalNavItem = Discourse.NavItem.extend({
    href : function() {
      return this.get('href');
    }.property('href')
  });

  I18n.translations.en.js.filters.bugs = { title: "Bugs", help: "Open Bugs" };
  I18n.translations.en.js.filters.features = { title: "Features", help: "Open Feature Requests" }

  Discourse.NavItem.reopenClass({
    buildList : function(category, args) {
      var list = this._super(category, args);
      if(!category) {
        list.push(Discourse.ExternalNavItem.create({href: '/category/bug?order=op_likes&status=open', name: 'bugs'}));
        list.push(Discourse.ExternalNavItem.create({href: '/category/feature?order=op_likes&status=open', name: 'features'}));
      }
      return list;
    }
  });