From f394fde17ed60463f403e08ce82d41e5c5d139a8 Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Mon, 2 Sep 2024 12:05:07 +0100 Subject: [PATCH] Fix: Emit router:location on contentObject reload (#573) --- js/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/router.js b/js/router.js index 225b06b0..dfbb686b 100644 --- a/js/router.js +++ b/js/router.js @@ -356,7 +356,7 @@ class Router extends Backbone.Router { } async updateLocation(currentLocation, type, id, currentModel) { - if (location._currentId === id) return; + if (location._currentId === id && id === null) return; // Handles updating the location. location._previousModel = location._currentModel;