From 9f14a503d83dcb3dcdd9d43a1c076ef543ce5384 Mon Sep 17 00:00:00 2001 From: Georges Indrianjafy Date: Mon, 29 Jan 2018 09:24:12 +0200 Subject: [PATCH] fix(history): use hashHistory --- browser/main/NoteList/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index 63788f04..566cd013 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -550,7 +550,7 @@ class NoteList extends React.Component { cloneNote () { const { selectedNoteKeys } = this.state - const { dispatch } = this.props + const { dispatch, location } = this.props const { router } = this.context const { storage, folder } = this.resolveTargetFolder() const notes = this.notes.map((note) => Object.assign({}, note)) @@ -578,6 +578,11 @@ class NoteList extends React.Component { this.setState({ selectedNoteKeys: [uniqueKey] }) + + hashHistory.push({ + pathname: location.pathname, + query: {key: note.storage + '-' + note.key} + }) }) }