Skip to content

Commit

Permalink
Fix import URL construction in start_import.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arielpontes committed Jan 12, 2021
1 parent dc4ad75 commit 48b03cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemet/thesaurus/static/thesaurus/js/start_import.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ = django.jQuery;
$(document).ready(function () {
$('input.start-import').click(function () {
url = window.location.origin + "/import/" + $(this)[0].id + "/start/";
url = window.location.href.split("admin")[0] + "import/" + $(this)[0].id + "/start/";
$.ajax({ url: url });
location.reload();
});
Expand Down

0 comments on commit 48b03cb

Please sign in to comment.