Meteor infinite redirect instead of render 404

后端 未结 2 1517
没有蜡笔的小新
没有蜡笔的小新 2020-12-20 00:19

I have a simple iron-router config in my /lib/router.coffee:

Router.configure
  notFoundTemplate: \"notFound\"

Router.map ->
  @route \"app\",
    path:          


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-20 01:12

    Try adding a default layoutTemplate in your call to Router.configure(). notFoundTemplate is designed to populate the yield of a main layout template, rather than serve as a replacement layoutTemplate.

提交回复
热议问题