Skip to content

Commit

Permalink
Merge branch 'hotfix' of github.com:NETivism/netiCRM into hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Sep 6, 2024
2 parents 1322202 + f14586c commit d2e3229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/CRM/Admin/Page/APIExplorer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ cj(function($) {
// generate preview
var RESTquery = resourceBase + "extern/rest.php"+ query.substring(restURL.length,query.length);
var previewHtml = 'Rest URL Preview: \n'+ encodeURI(location.origin+RESTquery) + '\n';
var restURLPreview = (location.protocol == 'https:') ? RESTquery : location.origin+RESTquery;
var previewHtml = 'Rest URL Preview: \n'+ encodeURI(restURLPreview) + '\n';
var json = fetchJson();
if (json) {
json = JSON.parse(json);
Expand Down

0 comments on commit d2e3229

Please sign in to comment.