Version 1.7.5 - November 29, 2022
- Fix some internal Flarum links opening inside iframe instead of expected parent window.
The extension was confirmed working on Flarum 1.6.
hrvoje_hr I have identified the issue. It only concerned the logo/home link, which is normally not visible in the iframe without CSS modification.
I have made a change that fixes that link and should also fix any other link that extensions try to open using javascript instead of an anchor tag.
It's possible that some browsers (I'm thinking of some obscure mobile/embedded browsers) might not let the URL open in the parent tab when that happens. In that situation there's an additional popup that will appear after 1 second if the page has not navigated away with a regular link inside that the user can click to access the page.
Another workaround or further performance improvement would be to detach the event handler that Flarum adds on the logo. I didn't do this since the catch-all code for all extensions also covers this particular situation.
This problem has in fact always existed. It probably also and still exists in Flarum's core embed
extension. I fixed it only in my extension.
Thanks for the reports!