From 20887479f4eef05d654a00316f601862d12a0417 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 29 May 2019 00:01:59 -0600 Subject: [PATCH] Use pathname for public links instead of href --- src/js/account/render.js | 2 +- src/js/account/sync.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/account/render.js b/src/js/account/render.js index c74b118..226b815 100644 --- a/src/js/account/render.js +++ b/src/js/account/render.js @@ -63,7 +63,7 @@ export function renderMakePublic() {

Public Link:
- + Copy

`; diff --git a/src/js/account/sync.js b/src/js/account/sync.js index 37bda23..01845b6 100644 --- a/src/js/account/sync.js +++ b/src/js/account/sync.js @@ -100,7 +100,7 @@ export function uploadWholeDictionary(asNew = false) { dictionary, }, remoteId => { window.currentDictionary.externalID = remoteId; - dictionary.getElementById('publicLink').value = window.location.href + remoteId.toString(); + dictionary.getElementById('publicLink').value = window.location.pathname + remoteId.toString(); saveDictionary(false); addMessage('Dictionary Uploaded Successfully'); renderChangeDictionaryOptions();