This is what you need How do you force a script to refire on every page load in Discourse? - #5 by simon
<script type="text/discourse-plugin" version="0.8">
api.onPageChange(() =>{
// code
});
</script>
This is what you need How do you force a script to refire on every page load in Discourse? - #5 by simon
<script type="text/discourse-plugin" version="0.8">
api.onPageChange(() =>{
// code
});
</script>