Only do try-it substitution if in hosted environment and not in Portal
Merge branch 'portal_preview' into develop