I don't know if I understand your problem correctly but I guess you simply have to add the attribute action with a value of "/" to your form element to make it work.
I don't know if I understand your problem correctly but I guess you simply have to add the attribute action with a value of "/" to your form element to make it work.