diff --git a/app/assets/javascripts/discourse/routes/topic_route.js b/app/assets/javascripts/discourse/routes/topic_route.js index 48a0938e535..efc2b952916 100644 --- a/app/assets/javascripts/discourse/routes/topic_route.js +++ b/app/assets/javascripts/discourse/routes/topic_route.js @@ -98,7 +98,11 @@ Discourse.TopicRoute = Discourse.Route.extend({ } }, - willTransition: function() { isTransitioning = true; return true; } + willTransition: function() { + Em.run.cancel(scheduledReplace); + isTransitioning = true; + return true; + } }, // replaceState can be very slow on Android Chrome. This function debounces replaceState