Can I disable a link on a modern page ?

Highlighted
Contributor

Hi

 

Can I disable a link on a modern page ?

 

I want to disable the "Share" link in the top right hand corner of a home page of a site so a site cannot be shared.

 

Thanks

 

Nigel

3 Replies
Highlighted
Well, if this is possible in the modern UI it must be by means of a SPFx Extension
Highlighted
There is no native way to do this, however you can disable the ability of users to share the page via PowerShell or unique profiles. If the users do not have the ability to share, they will not see the "Share" Button.
Highlighted

Hi Hunter

Do you have any examples of the PowerShell required and what do you mean by "unique profiles".

 

Thanks

 

Nigel