When JavaScript falls back to admin-ajax.php instead of the fast
search-endpoint.php, results were returned with empty permalinks.
This caused click tracking to log URLs in /?p=ID format.
Now both endpoints build proper permalinks using post_name:
- search-endpoint.php (fast): Already had the fix
- admin-ajax fallback: Added permalink building (lines 182-203)
Also flushed Redis cache to clear stale results.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>