Skip to main content
Solved

React-router doesn't work in Sidebar plugin iframe

  • May 19, 2024
  • 1 reply
  • 77 views

krodion

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.  

Best answer by jason

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

1 reply

jason
Forum|alt.badge.img+8
  • Fronteer
  • Answer
  • May 20, 2024

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