If I’m not wrong, because Discourse is a single-page application, I believe you’ll have to use the plugin API’s api.onPageChange() for this.
If I’m not wrong, because Discourse is a single-page application, I believe you’ll have to use the plugin API’s api.onPageChange() for this.