would it not be possible to use classes to determine how longs should act? We use framework7 as a ui / ux / template engine. With FW7 to have links jump out and not route you must use ‘link external’ in the class list of the href?
Secondly, what if there was a specific forge.open command? We use window.open in JS this is basically telling the links that we wish to open a new browser window, but if there was a way to tell forge we want a new browser to open then it may work.
Third option may be to build a specific forge.iframe module, this would allow forge to know how to handle the URL.
Our use case may be a bit different as we use the ‘Iframe’ specifically for loading video / livestream URL’s and ‘links’ should be allowed to open in a new browser window unless using the child browser window.
As it stands right now, the way we have to work around this is to have a redirect script that passes all URL’s through our http redirect script so all external links are contructed as
< a href=“http://ourserver.com/redirect?url=https://urltoopen”>link< /a>
I’m wondering, if as mentioned above if something on the forge side say forge.open(url, target) could work. The underlying module could then take that URL, force a new browser window with the URL. I would expect this to not use the trusted URL’s as its simply a passthrough to a new site maybe have an option to honor trusted_urls if needed.
On the flipside, the same logic could be used for something like forge.iframe(src, properties) this would essentially do the same thing but would tell forge its an iframe vs a link.
I’m not opposed to constructing links or iframes in a different way, however it would need to fallback on webview as we use both web and ios / android builds.