Pages

Sunday, October 31, 2021

Add SPFx webpart to full-width column

By default, SPFx web parts cannot added in full-width column page layouts. To do it, in the web part manifest (the *.manifest.json file next to the web part *.ts file) set the supportsFullBleed property to true.



Tuesday, October 12, 2021

SPFx Routing is not reflecting in browser

 Problem

I was trying to implement routing in my SharePoint Framework webpart. The webpart working fine but only the issue is the Hash url is not reflected in the browser. 

This is because if the isDomainIsolated  is set to true. When it is set to true the webpart is embedded into a iFrame. 

Solution


Change the isDomainIsolated into false in package-solution.json under config folder. 

"isDomainIsolated": false,