How to reopen ApplicationRoute


(Vinoth Kannan) #1

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)


(James Kiesel) #2

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

import ApplicationRoute from 'discourse/routes/application';

?


(Vinoth Kannan) #3

thank you. it’s working :thumbsup:


(Régis Hanol) #4