fixed form action not submitting the correct URL
This commit is contained in:
parent
082d425b5d
commit
795a63d83f
1 changed files with 6 additions and 1 deletions
|
@ -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()}`);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue