Two PDF tabs open on iOS with openurl unintentionally

  • Hi all,

    I have this data container with simple HTML inside and display a textbox as a layer element and attribute html="data:einweis"

    Code
    <data name="einweis"><![CDATA[ <a href="event:openurl('pdf/Einweisung.pdf');">Einweisungsformular</a> ]]></data>

    This PDF is expected to be opened in a new tab after touching the Text-Hyperlink. Works fine so far, but strange behaviour with iPad Safari and iOS 14 and 15. Here, *two* tabs with the same PDF are always opened. Why two *confused* ? An old iPad with iOS 9 behaves as expected as well as on desktop. Usage of newest krpano version and the same with 1.20.9.

    Any thoughts much appreciated. Thanks.

    Chris

  • Hi,

    Thanks for reporting!
    This is a side-effect from a touch-events workaround that was necessary for older versions.
    With the next krpano release this will work again as intended.

    But as workaround for your case you could simply normally link to the pdf, there is no need for using krpano events just for linking to a file.

    E.g. just use normal html code:

    Code
    <a href="pdf/Einweisung.pdf" target="_blank">Einweisungsformular</a>

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!