Answers.Body: <p>I was missing the typical '/' within the URL</p>
  
  <p>The correct URL for this path should be:</p>
  
  <blockquote>
    <p>{{ url('/search/results') }}</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-17T13:48:37.127Z
Answers.LastActivityDate: 2017-04-17T13:48:37.127Z
Answers.UserDisplayName: JMKelley
Body: <p>I've pushed my site to Digital Ocean from Localhost, the site is all up and running - URL's are all working. But when I try and search the site it seems to be heading to </p>
  
  <blockquote>
    <p><a href="http://123.456.789/index.php?q=test" rel="nofollow noreferrer">http://123.456.789/index.php?q=test</a></p>
  </blockquote>
  
  <p>Instead of </p>
  
  <blockquote>
    <p><a href="http://123.456.789/search/results?q=ariz" rel="nofollow noreferrer">http://123.456.789/search/results?q=ariz</a></p>
  </blockquote>
  
  <p>I have manually entered the second page in and I get to the search results page, so it does exist but Craft's routes seem to be breaking? Any help would be brilliant!</p>
  
  <pre><code>        &lt;form action="{{ url('search/results') }}"&gt;
            &lt;input class="text-field w-input" type="search" name="q" placeholder="Search for any University..."&gt;
            &lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;" tabindex="-1" /&gt;
          &lt;/form&gt;
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-17T12:34:31.450Z
Comments.Text: What does your form code look like? It sounds like the test URL might be hardcoded.
Comments.UserDisplayName: Wonko
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-17T12:35:25.247Z
Comments.Text: Added to question
Comments.UserDisplayName: JMKelley
Tags: <entries><search><routes>
Title: Search going to /index.php?q= instead of results
ThreadText: # Search going to /index.php?q= instead of results
  
  (Asked by: username_0 on 2017-04-17)
  
  I've pushed my site to Digital Ocean from Localhost, the site is all up and running - URL's are all working. But when I try and search the site it seems to be heading to
  
  > <http://123.456.789/index.php?q=test>
  
  Instead of
  
  > <http://123.456.789/search/results?q=ariz>
  
  I have manually entered the second page in and I get to the search results page, so it does exist but Craft's routes seem to be breaking? Any help would be brilliant!
  
  ```
          <form action="{{ url('search/results') }}">
            <input class="text-field w-input" type="search" name="q" placeholder="Search for any University...">
            <input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;" tabindex="-1" />
          </form>
  
  ```
  
  **Tags:** entries, search, routes
  
  > **Comments:**
  > **username_1**: What does your form code look like? It sounds like the test URL might be hardcoded.  
  > **username_0**: Added to question  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-04-17. Score: 1 | Accepted answer
  
  I was missing the typical '/' within the URL
  
  The correct URL for this path should be:
  
  > {{ url('/search/results') }}
  
  
  ---
  
  