הפעלת JavaScript בלחיצה על כל קישור בדף, אך לפני טעינת תוכן הדף?

This doesn’t seem to fire on entering a Topic from a Topic List?

I’ve also tried adding one:

      api.modifyClass("route:topic", {
        pluginId: PLUGIN_ID,
        actions: {
          willTransition() {

but that doesn’t fire either.