You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file h5peditor-init.js, with the method getAjaxUrl where is constructs the query url, I think its missing the addition of the "?" to make it a valid url.
I would change this: if (parameters !== undefined) { for (var property in parameters) { if (parameters.hasOwnProperty(property)) { url += '&' + property + '=' + parameters[property]; } } }
to this: if (parameters !== undefined) { var separator = '?'; for (var property in parameters) { if (parameters.hasOwnProperty(property)) { url += separator + property + '=' + parameters[property]; separator = '&'; } } }
The text was updated successfully, but these errors were encountered:
Could you create a Pull Request for this?
Also, note that the ? may already be in the ajaxPath, so you may want to do a ajaxPath.indexOf('?') === -1 ? '?' : '&'
In the file h5peditor-init.js, with the method getAjaxUrl where is constructs the query url, I think its missing the addition of the "?" to make it a valid url.
I would change this:
if (parameters !== undefined) { for (var property in parameters) { if (parameters.hasOwnProperty(property)) { url += '&' + property + '=' + parameters[property]; } } }
to this:
if (parameters !== undefined) { var separator = '?'; for (var property in parameters) { if (parameters.hasOwnProperty(property)) { url += separator + property + '=' + parameters[property]; separator = '&'; } } }
The text was updated successfully, but these errors were encountered: