Solved

React-router doesn't work in Sidebar plugin iframe

  • 19 May 2024
  • 1 reply
  • 25 views

Hi.


I’m trying to embed an app with react-router as a sidebar plugin, but navigation doesn’t work because of iframe’s sandbox prop (absent allow-top-navigation-by-user-activation?).
Is there any way to edit sandbox prop?

 

Thank you in advance.  

icon

Best answer by jason 20 May 2024, 17:09

View original

1 reply

Userlevel 4
Badge +8

Hi, I believe this is expected. My understanding of React Router is that it maps different URL paths within your app. A Front plugin should be a single-page app (one URL path), so any changes in view in your plugin should be controlled by state changes, rather than page navigation changes

Reply