use iron router before hooks to get path