[DB-7899] Completed improvements to web app URL auto-detection