Blog Sections Open

Why AjaxSearch Can Trigger Too Many Redirects

Redirect loops around AjaxSearch are especially frustrating because the search snippet itself may not look suspicious at all. The original case here produced an ERR_TOO_MANY_REDIRECTS scenario until document exclusions w

Redirect loops around AjaxSearch are especially frustrating because the search snippet itself may not look suspicious at all. The original case here produced an ERR_TOO_MANY_REDIRECTS scenario until document exclusions were adjusted.

Typical Call

[!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0`!]

Adding a document exclusion changed the behavior:

[!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0` &documents=`not in:1`!]

What This Suggests

  • the search page may be matching its own output path
  • homepage routing or result-page routing may be colliding
  • document inclusion logic can affect redirects indirectly

When search loops back into itself, look at routing and page selection first, not only at the query text. Redirect bugs are often caused by where the results live, not how they are searched.

Newer post

Fixing YAMS "Too Many Forward Attempts" Errors in Evolution CMS

What usually causes the "Too many forward attempts" error in a YAMS-based Evolution CMS site and how to debug the routing loop safely.

Older post

Fixing eForm onMailSent Callback Errors

How to debug eForm onMailSent hooks when the callback function looks correct but Evolution CMS still reports it as undefined.