Skip to content

LDAP Login produces client side exception in FlowRouter #338

@derwok

Description

@derwok

let routeName = FlowRouter.current().route.getName()
in loginLdap.js produces this client side exception:

Exception in delivering result of invoking 'login': TypeError: a.current(...).route.getName is not a function
    at i (https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:191:45987)
    at https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:79:3581
    at https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:3:8337
    at a (https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:79:4300)
    at y._callback (https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:1:7481)
    at y._maybeInvokeCallback (https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:53:42103)
    at y.dataVisible (https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:53:42489)
    at https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:53:51353
    at Array.forEach (<anonymous>)
    at Function.A.each.A.forEach (https://mail.methodpark.de/4minitz/caf8b229f138defc0abe9c1442aa89f6ee5951de.js?meteor_js_resource=true:3:854)

Seems FlowRouter has a different API:
https://github.com/kadirahq/flow-router#flowroutercurrent
route: {pathDef: "/apps/:appId", name: "name-of-the-route"}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions