Forum Discussion

Mike Hatheway's avatar
Mike Hatheway
Brass Contributor
Mar 16, 2021

Hiding the SharePoint App Bar when embedding

Does anyone know if you can hide the new SharePoint App bar (global nav) with a URL query param when embedding?

I've tried:

env=Embedded

and

env=WebViewList

which work in some instances, but not everywhere (e.g., List forms like newform.aspx, and most _layout pages I have checked).

 

Example: [tenant].sharepoint.com/_layouts/15/viewlsts.aspx?view=14&env=Embedded

That gets rid of alomost everything except the App bar. 

 
 
 
 
 
 
 
 
 
 
 
  • _KarlH's avatar
    _KarlH
    Brass Contributor
    ?env=WebViewList seems to be working OK for page embeds with Library parts.
    • panggio's avatar
      panggio
      Copper Contributor
      Thanks! That works much better than Embedded now.
  • Mike Hatheway's avatar
    Mike Hatheway
    Brass Contributor
    "?env=Embedded" seems to be working on system and form pages to hide the SP App bar now.
    • panggio's avatar
      panggio
      Copper Contributor
      Does ?env=Embedded is showing on page load briefly the controls before it hides them? I've noticed it since early this week. It was fine before.

Resources