Search pagination goes to wrong URL?
-
I have multisite activated on my domain and have created a site named ‘Temp’. The site is set to display 1 post per page.
Everything renders correctly on the first page of search results and here’s the url I get searching for ‘is’:
https://mysite.com/temp?s=+is&Submit=Search%21
However, When I navigate to the second page of search results it goes to:
https://mysite.com/temp/temp/page/2/?s=+is&Submit=Search%21
…and I get a ‘Page Not Found’ notice.
As you can see above, there’s an extra instance of the site name being inserted into the url when I navigate beyond the first page of search results.
Any ideas what could be causing the extra ‘temp’ to be inserted into the url?
I haven’t touched the default permalink settings and the nav works flawlessly everywhere else – the problem is only with search results.
I created my search results page by copying my index.php code into my search.php.
What’s different about the way search results are rendered that’s causing pagination to have issues that don’t occur on the index and archive pages?
Thanks!
**This doesn’t happen with the default twenty eleven theme, but I can’t figure out which function prevents it.
- The topic ‘Search pagination goes to wrong URL?’ is closed to new replies.