Also handle the `index.php` fragment when storing the website path (see #5339)
Ignore the "auto_item" key when rebuilding the search index URL (see #5482)
Fix the safe mode (see #5490)
Do not store the relative path unless it can be reliably determined (see #5339)