Thanks for your help @pfaffman. I finally found the controller and the action I needed to modify and the plugin is working again in Discourse 2.6.x
const NavigationDefaultController = require('discourse/components/d-navigation').default;
const SearchResultsDefaultController = require('discourse/controllers/full-page-search').default;
...
function myFunction() {
CODE HERE
}
...
NavigationDefaultController.reopen({
actions: {
clickCreateTopicButton: myFunction,
},
});
SearchResultsDefaultController.reopen({
actions: {
createTopic: myFunction,
},
});
Note: This is the plugin’s code inside yourPlugin/assets/javascripts/discourse/initializers
Once I click on the “New Topic” button, my javascript code is run and users get the menu I built for the forum.