Skip to content

Commit

Permalink
Fixed: convert slashes to HTML encoding before opening the Create API…
Browse files Browse the repository at this point in the history
… token dialog.
  • Loading branch information
Dan0sz committed Feb 26, 2024
1 parent 02c5702 commit 59be4cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/src/js/admin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ document.addEventListener('DOMContentLoaded', () => {
e.preventDefault();

let domain = document.getElementById('domain_name').value;
domain = domain.replace('/', '%2F');

window.open(`https://plausible.io/${domain}/settings/integrations?new_token=WordPress`, '_blank', 'location=yes,height=768,width=1024,scrollbars=yes,status=no');
},
Expand Down

0 comments on commit 59be4cc

Please sign in to comment.