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

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

Open
garretthyder opened this issue Sep 14, 2016 · 0 comments
Open

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

garretthyder opened this issue Sep 14, 2016 · 0 comments

Comments

@garretthyder
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant