我正在使用ember-simple-auth构建一个应用程序。
因此它看起来非常像它正在做的库。
这是发生的事情:
我的问题是,如何将/ dashboard定义为路径而不是索引?因此,成功登录后,您将被重定向到/ dashboard
您可以在配置中配置Ember Simple Auth的routeAfterAuthentication,例如
routeAfterAuthentication
ENV['ember-simple-auth'] = { routeAfterAuthentication: 'dashboard' }