title: Meteor / Iron Router external redirection
body: <p>So I'm creating a basic vanity URL system, where I can have <code>http://myURL.com/v/some-text</code>, grab an item from the database and redirect to a specific URL based on whether or not the client is mobile/desktop and other features.</p>
  
  <p>I usually build Facebook apps, so in the case of desktop they would be redirected to a Facebook URL, otherwise on mobile I can just use normal routes.</p>
  
  <p>Is there a way to redirect from Iron Router on the server-side to an external website?</p>
  
  <pre><code>this.route('vanity',{
      path: '/v/:vanity',
      data: function(){
          var vanity = Vanity.findOne({slug:this.params.vanity});
  
          // mobile / desktop detection
  
          if(vanity){
              if(mobile){
                  // Redirect to vanity mobile link
              }else{
                  // Redirect to vanity desktop link
              }
          }else{
              Router.go('/');
          }
      }
  });
  </code></pre>