Skip to content

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

adding url of the opened file for the webdav version

uggrock996d4e85e57e
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 12b98665c..9a1f6171c 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -226,6 +226,8 @@ define(function(require, exports, module) {
_openedFilePath = filePath;
//$("#selectedFilePath").val(_openedFilePath.replace("\\\\","\\"));
if (isWeb) {
+ window.history.pushState("", "TagSpaces", "/index.html?p=" + encodeURIComponent(filePath));
+ console.log("Link to file for sharing: " + window.location.href);
var downloadLink;
if (location.port === '') {
downloadLink = location.protocol + '//' + location.hostname + _openedFilePath;