Strip base url from links before determining anchor status for iOS linker
This commit is contained in:
parent
b8030313e5
commit
f2b784e654
|
@ -19,7 +19,7 @@
|
||||||
<link rel="manifest" href="{{$baseurl}}/manifest" />
|
<link rel="manifest" href="{{$baseurl}}/manifest" />
|
||||||
<script>
|
<script>
|
||||||
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
|
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
|
||||||
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
|
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="search"
|
<link rel="search"
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<link rel="manifest" href="{{$baseurl}}/manifest" />
|
<link rel="manifest" href="{{$baseurl}}/manifest" />
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
|
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
|
||||||
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
|
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="search"
|
<link rel="search"
|
||||||
|
|
Loading…
Reference in a new issue