mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: If you hit back while a replaceState
was queued up it would
update the URL even after navigating.
This commit is contained in:
parent
a34037b26c
commit
0b368993b7
@ -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
|
// replaceState can be very slow on Android Chrome. This function debounces replaceState
|
||||||
|
Loading…
Reference in New Issue
Block a user