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


Instead of


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" />
  • What does your form code look like? It sounds like the test URL might be hardcoded.
    – Wonko
    Apr 17 '17 at 12:34
  • Added to question
    – JMKelley
    Apr 17 '17 at 12:35

I was missing the typical '/' within the URL

The correct URL for this path should be:

{{ url('/search/results') }}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.