#110248Prevent infinite recursion for self-linking doktype=3 pages
Description
originally reported by Martina Kratky
Steps to reproduce:
1. Create a page with doktype = 3, link = ‘#’.
2. Visit that page’s own frontend URL.
3. Expected: the page renders, or at minimum fails cleanly.
4. Actual: the request hangs indefinitely (only caught by PHP max_execution_time)