Skip to content

Build your personal knowledge base with Trilium Notes

capture location.hash with save-selection (example.com/long-article#part10)

contributor750d2fe3bba7
diff --git a/content.js b/content.js
index 58b75d19ae..faacfa5464 100644
--- a/content.js
+++ b/content.js
@@ -297,7 +297,7 @@ async function prepareMessageResponse(message) {
title: pageTitle(),
content: container.innerHTML,
images: images,
- pageUrl: getPageLocationOrigin() + location.pathname + location.search
+ pageUrl: getPageLocationOrigin() + location.pathname + location.search + location.hash
};
}