app/assets/javascripts/formstrap.js in formstrap-0.1.0 vs app/assets/javascripts/formstrap.js in formstrap-0.1.1
- old
+ new
@@ -10972,10 +10972,11 @@
this.destroyItem(item);
}
syncIds() {
const ids = this.activeIds();
this.modalButtonTargets.forEach((button) => {
- const url = new URL(button.getAttribute("href"));
+ const sourceLocation = location.protocol + "//" + location.host;
+ const url = new URL(button.getAttribute("href"), sourceLocation);
url.searchParams.delete("ids[]");
ids.forEach((id) => {
url.searchParams.append("ids[]", id);
});
button.setAttribute("href", url.toString());