Commit 795a63d8 authored by Phil Hughes's avatar Phil Hughes

fixed form action not submitting the correct URL

parent 082d425b
......@@ -355,7 +355,12 @@ $(function () {
$(document).trigger('init.scrolling-tabs');
$('form.filter-form').on('submit', function (event) {
const link = document.createElement('a');
link.href = this.action;
const action = `${this.action}${link.search === '' ? '?' : '&'}`;
event.preventDefault();
gl.utils.visitUrl(`${this.action}&${$(this).serialize()}`);
gl.utils.visitUrl(`${action}${$(this).serialize()}`);
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment