diff --git a/static/js/pad_impexp.js b/static/js/pad_impexp.js index e5dee7af..8e4b269d 100644 --- a/static/js/pad_impexp.js +++ b/static/js/pad_impexp.js @@ -289,9 +289,7 @@ var padimpexp = (function() }, export2Wordle: function() { - padUrl = location.pathname; - padHost = location.host; - var padUrl = "http://" + padHost + padUrl + "/export/txt"; + var padUrl = document.location.href + "/export/txt"; $.get(padUrl, function(data) {