내가 틀리지 않았다면, Discourse가 단일 페이지 애플리케이션(SPA)이므로 이 작업에는 플러그인 API의 api.onPageChange()를 사용해야 할 것입니다.
api.onPageChange()