How to reopen ApplicationRoute

I also wanted the same functionality for my plugin to reopen ApplicationRoute. But it always fail with error Uncaught TypeError: Cannot read property 'reopen' of undefined(…)(anonymous function) @ javascripts/custom_auth:1(anonymous function) @ plugin-third-party.js:7. Can anyone help me what is wrong in it.

Also I installed the above mentioned hummingbird plugin in my development env. That one also not working :frowning: (javascript part)

1 Like

I don’t think ApplicationRoute is defined on the Discourse window object. Have you tried

import ApplicationRoute from 'discourse/routes/application';



thank you. it’s working :thumbsup: