Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Please keep rel="external" within the iOS webApp #8521

Open
@garretthyder

Description

@garretthyder

Hello,

I realize this is a duplicate of two closed tickets;
#597
#744

However neither of these seemed to have been resolved with an appropriate fix for jQM. They indicate some hacks to JQM itself or using jquery.stayInWebApp.js (https://github.com/mrmoses/jQuery.stayInWebApp/blob/master/jquery.stayInWebApp.js).

For myself to get this working I implemented the following snippet on each .html file;

<script>
    // Navigation Fix
    if ( ("standalone" in window.navigator) && window.navigator.standalone ) {
        $(document).on('click', "a[rel*=external], area[rel*=external]", function(){
            self.location=this.href;
            return false;
        });
    }
</script>

Can someone on the jQM team look into correcting this on the core so hacking or implementing snippets isn't a requirement for getting JQM rel="external" functional on iOS webApps.

Please and Thank You

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions