Steps to reproduce
Create a site
Link to site pages using the inAppHelp=true query parameter
Create a custom domain
Visit a link created in 2.
The breadcrumbs and other page elements should be hidden
Breadcrumbs, JSD integration and cookie notice appear. In the network tab you can also see that the pagetree.json is fetched.