From 4a1535d6c8504dd1a7b25cad7ff3aa4b896fff34 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Wed, 24 Aug 2016 00:48:18 -0700 Subject: [PATCH] Always result to current document url --- frontend/scenes/DocumentScene/DocumentSceneStore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/scenes/DocumentScene/DocumentSceneStore.js b/frontend/scenes/DocumentScene/DocumentSceneStore.js index 3db364ba9..3475808a6 100644 --- a/frontend/scenes/DocumentScene/DocumentSceneStore.js +++ b/frontend/scenes/DocumentScene/DocumentSceneStore.js @@ -59,6 +59,7 @@ class DocumentSceneStore { const { data } = res; runInAction('fetchDocument', () => { this.document = data; + browserHistory.replace(data.url); }); } catch (e) { console.error("Something went wrong");