Skip to content

TagSpaces is an offline, open source, document manager with tagging support

cleaning location.path on closing files

Ilian Sapundshieve44022a8f79e
diff --git a/app/reducers/app.js b/app/reducers/app.js
index 467f8da5c..bfa60b9cc 100644
--- a/app/reducers/app.js
+++ b/app/reducers/app.js
@@ -501,6 +501,7 @@ export default (state: Object = initialState, action: Object) => {
return state;
}
case types.CLOSE_ALL_FILES: {
+ window.history.pushState('', 'TagSpaces', location.pathname);
return {
...state,
openedFiles: [],