OK, I created a fresh new resource and copied the content over and named it "where to buy"
Now if you search for "buy" and click the headline link, it takes you to the page but the "Search Highlighting" part appears twice. Also, if you click the 3rd search result "our eggs" you get a blank page as well - this is a different page all together.
I’m using Evolution 1.0.2 and here’s my AjaxSearch call in the search box:
<div class="searchBox">
<h4>Search:</h4>[!AjaxSearch? &ajaxSearch=`0` &AS_landing=`57` &AS_showResults=`0`!]
</div>
And on the page (in a plain text area - not rich text incase that matters):
[!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &breadcrumbs=`Breadcrumbs,showCrumbsAsLinks:1,showCrumbsAtHome:1,currentAsLink:1` &extractLength=`700` &pageLinkSeparator=``!]
This could be an .htaccess issue, I had a bit of trouble setting friendly URLs up but here is my .htaccess file incase someone can see something:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
#RewriteRule (.*) http://www.example.com/$1 [R=301,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Reduce server overhead by enabling output compression if supported.
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
# For full documentation and other suggested options, please see
# http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
Then in the host’s help section they say to use this with the following note: "Note: Please note the forward slash in the last line before the index.php. This is required on our servers." Their suggestion didn’t work during development so I might try this now the site’s live:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?id=$1 [L,QSA]
Any pointers in the right direction would be great!