Meteor Accounts Routing

I use Meteor Accounts package but not the accounts-ui. If I send a verify email when user is created the following link is provided in the email: http://localhost:3000/#/verify-email/06apVGBQypZAzpXZp4bPOYzn0-jCS9rR7ENkr8jkQRr If I open this link this route is redirected to http://localhost:3000/# and the template I defined for / is rendered. I can then access the Accounts._verifyEmailToken thats not a problem. But I dont want this route /# to be taken.

How can I say the Accounts package that I want to be redirected to my the route I want (in my case /app)?

My attempts so far:

  1. Redirect /# with iron router to /app ==> not working
  2. Having a look in the source code of accounts package. There are URLS provided with Meteor.absoluteUrl. But I don't want to change the source code of the package.

What ideas do you have to let the package route to /app afterwards and still have the token accessable in javascript?


You can configure the url of the different mails in the Account package, like this

 Accounts.urls.verifyEmail= function(token){
    return Meteor.absoluteUrl("/app/"+token+"/");

Just overwrite the method on the server side.

Need Your Help

std::list remove calling delete on pointer?

c++ segmentation-fault valgrind delete-operator stdlist

I ran valgrind on my program because of a segfault I can't figure out. It detected a problem here...

How to nuke all Ruby Gems from the system and start over

ruby-on-rails ruby macos rubygems

What's the easiest way to start over with Ruby Gems? I have Ruby 1.8.7 (OSX, ports) installed and I have also installed rails and some other random stuff a while back. Now the gems system seems to be