Skip to content
Snippets Groups Projects
Commit 795a63d8 authored by Phil Hughes's avatar Phil Hughes
Browse files

fixed form action not submitting the correct URL

parent 082d425b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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()}`);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment