Express js route named ‘search’ having weird behavior This should work properly as the coide is correct.