Differential / polymer-demo

Polymer & Meteor
164 stars 44 forks source link

Router redirecting to home #16

Closed rdrey closed 9 years ago

rdrey commented 9 years ago

Hi there

Thanks for this awesome repo. Sorry, this issue has nothing to do with your code, but I've got issues reproducing your tricks. :) Hoping you don't mind me asking here.

I've been using a mix of this and discovermeteor.com to go off the beaten track and build my own little app while "kind of" following the book.

I've currently got an issue where my app keeps redirecting to "/" instead of a "route not found" template.

I've stolen the router config

Router.configure
  autoRender: false
  autoStart: false

client/init.coffee and server/init.coffee from you guys and double checked that you render the default iron:router route not found template correctly.

Any idea why this would be happening / have you ever seen iron:router do this?

Thanks a lot, Rainer

rdrey commented 9 years ago

Aaand figured it out, sorry. Always happens 3 minutes after asking for help.

I had mixed tabs and spaces, so coffee-script ran the Router.go code in the "root" Template definition level, instead of in the event handler.