private bool IsCircularRedirect(PageInfo pi)
{
// We need to generate the formatted content to know whether the topic is redirected
pi.GetFormattedContent();
if (!String.IsNullOrEmpty(pi.RedirectToTopic))
{
foreach (string s in autoRedirects)
{
if (s.Equals(pi.RedirectToTopic, StringComparison.InvariantCultureIgnoreCase))
{
return true;
}
}
}
return false;
}