diff --git a/TogglLibrary.js b/TogglLibrary.js
index 07b0b89b6bc0874a8d7e26ae1f20479430921ce3..96b065065ed78b451b9c5049a255ab9ae469afbf 100644
--- a/TogglLibrary.js
+++ b/TogglLibrary.js
@@ -409,6 +409,9 @@ function TogglButtonGM(selector, renderer) {
           responseData = JSON.parse(res.responseText);
           entryId = responseData && responseData.data && responseData.data.id;
           $curEntryId = entryId;
+          if (params.storeEntryUrl) {
+            GM_setValue('_url['+entryId+']', window.location.href);
+          }
           document.dispatchEvent(new CustomEvent('TogglButtonGMUpdateStatus'));
         }
       });