I have the following code on my website:
<link rel="apple-touch-icon" href="http://website.com/images/apple-touch-icon.png" />
When I browse the source in Firefox and click on the href attribute, an icon is displayed (so this is not a 404 error).
When the code is added to a page like http://website.com/mobile/index.php or http://website.com/mobile/page.php and the page is added to the iPhoneβs desktop, the icon works fine, but when the URL The page address is similar to http://website.com/page or http://website.com/index , the icon does not work. Does not appear.
There are no errors in the "website debugging console" presented in Safari settings, and I tried to clear the cache and cookies.
I also use the website of the <base href="http://website.com/mobile/" /> , which is displayed on both http://website.com/mobile/index.php and http://website.com/index . But I donβt see how this will affect this, since the apple-touch icon uses the full URL.
source share