AI OnAI Off
I was under the impression that this was no longer an issue in r2. I have a check for this in global asax that prevent this kind of circular references. I can give it to you if you want.
You can use this script to identify the pages that has a circular reference to itself.
SELECT PageLanguage.PageLinkGUID as pageguid, PageLanguage.fkPageID
FROM dbo.tblPageLanguage as PageLanguage
INNER JOIN (
SELECT pkId, PageGUID
FROM dbo.tblPage Page
WHERE Page.PageGUID IS NOT NULL
) AS Page
ON Page.pkID = PageLanguage.fkPageID
AND Page.PageGUID = PageLanguage.PageLinkGUID
AND PageLanguage.PageLinkGUID IS NOT NULL
There's a SQL script that identifies this problem in these posts:
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=35632&epslanguage=en
http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=31982
Would this be a correct equivalent in CMS 6 R2?