app/assets/javascripts/umlaut/update_html.js in umlaut-3.1.1 vs app/assets/javascripts/umlaut/update_html.js in umlaut-3.2.0

- old
+ new

@@ -46,9 +46,12 @@ // For our UmlautHtmlUpdater object. function HtmlUpdater(umlaut_base, context_object) { if (context_object == undefined) context_object = ""; + // Remove query string (if present) + umlaut_base = umlaut_base.replace(/\?.*$/, '') + // Remove trailing slash umlaut_base = umlaut_base.replace(/\/$/,''); this.umlaut_uri = umlaut_base + '/resolve/partial_html_sections?umlaut.response_format=json&' + context_object; this.section_targets = [];