Skip to content

Commit

Permalink
fix advanced url displayed for copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Hofer committed Mar 18, 2022
1 parent e0eedc9 commit 89fd682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/ddns_token_list.htm
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ <h4><tmpl_var name="dyndns_protocol_txt"></h4>
custom_port = true;
}
}
let url = base_url + '/ddns/update.php';
let script_url = base_url + '/ddns/update.php';
if (zones.length === 1 && records.length <= 1 && (types.indexOf('A') !== -1 || types.indexOf('AAAA') !== -1)) {
const url_simple = url + '?token=' + token;
const url_simple = script_url + '?token=' + token;
modal.find('input#token-url-simple').val(url_simple);
if (records.length === 0) {
modal.find('div#token-url-simple-warning').show();
Expand All @@ -291,7 +291,7 @@ <h4><tmpl_var name="dyndns_protocol_txt"></h4>
if(types.indexOf('A') === -1 && types.indexOf('AAAA') === -1) {
example_data = 'XY';
}
const url_advanced = base_url + '?zone=' + zone + '&type=' + types[0] + '&record=' + record + '&data=' + example_data + '&token=' + token;
const url_advanced = script_url + '?zone=' + zone + '&type=' + types[0] + '&record=' + record + '&data=' + example_data + '&token=' + token;
// set standard url parameters
modal.find('input#token-url-advanced').val(url_advanced);
modal.find('input#token-auth-pass').val(token);
Expand Down

0 comments on commit 89fd682

Please sign in to comment.