Pages

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,


No comments:

Post a Comment