<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>

CC BY-SA 3.0
2017-04-17T13:48:37.127Z
2017-04-17T13:48:37.127Z
JMKelley
<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>

CC BY-SA 3.0
2017-04-17T12:34:31.450Z
What does your form code look like? It sounds like the test URL might be hardcoded.
Wonko
CC BY-SA 3.0
2017-04-17T12:35:25.247Z
Added to question
JMKelley
<entries><search><routes>
Search going to /index.php?q= instead of results
# 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!

**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') }}


---

