collective / volto-hydra

A volto addon to let you edit content in realtime when you have many frontends written in any framework
2 stars 4 forks source link

Fix page navigation in iframe #128

Closed MAX-786 closed 3 months ago

MAX-786 commented 3 months ago

fixes #124

after looking into this it seems that if we prefix iframe url like i typedin https://localhost:5173/#! and then when you navigate to another page in adminUI, then adminUI changes it to https://localhost:5173/new-path?token=xyz#! and so it works locally but it will not work current netlify so, even if i let adminUI do this https://localhost:5173/#!/new-path this just opens up the root route of the site as you can see here this will open up homepage instead of test page : https://hydra-vue-f7.netlify.app/#!/test

So current navigation in iframe works like this: after navigating to another page in iframe,

djay commented 3 months ago

fixes #124