title: Html form doesn't respond of hitting Enter
body: <p>I'm writing backend of my site on nodeJS using express. There is search form there. After I type in name of the object I'm looking for I press Enter button, but form is not responding. I've read similar posts here, but there is no working solution for my case. 
  Here is form</p>
  
  <pre><code>    &lt;div&gt;
        &lt;form action="/options/searchres" method="GET"&gt;&lt;/form&gt;
         &lt;input type="text"  name="name" placeholder="Search.."&gt;
         &lt;input type="hidden" name="page" value="1"&gt;
        &lt;/form&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>So I have app.js file with router options (websitename/options/search)
  here is router options.js code</p>
  
  <pre><code>    router.get("/search", (req, res) =&gt; {
      res.render('search');
      });
      router.get("/searchres", (req, res) =&gt; {
      academies.getAll()
      .then(data =&gt; {
      let object = data;
      let dat = {
          academies: academies,
          page: req.query.page,
          searchname: req.query.name
      };
  
      academies.getByName(req.query.name)
          .then(data =&gt; {
              dat.academies = data;
              // console.log(data);
              res.render('searchres', dat);
           })
         });
      });
  </code></pre>