From d7afbc5745e6e77d644484bcd8b54cedce04e7d9 Mon Sep 17 00:00:00 2001 From: smilerz Date: Thu, 22 Apr 2021 11:27:28 -0500 Subject: [PATCH] truncate query params on url --- cookbook/static/js/bookmarklet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/static/js/bookmarklet.js b/cookbook/static/js/bookmarklet.js index 4d0892ad..434b2632 100644 --- a/cookbook/static/js/bookmarklet.js +++ b/cookbook/static/js/bookmarklet.js @@ -23,7 +23,7 @@ let url = localStorage.getItem('importURL') let redirect = localStorage.getItem('redirectURL') let token = localStorage.getItem('token') - let params = { 'html' : recipe,'url': window.location.href}; + let params = { 'url': window.location.protocol + '//' + window.location.host + window.location.pathname, 'html' : recipe}; const xhr = new XMLHttpRequest(); xhr.open('POST', url, true);