When using with a subfolder domain it links to the wrong files. My flarum is at example.com/forum
The https://example.com/forum/webmanifest
contains:
{
"name": "Example Community",
"short_name": "Example Community",
"description": "",
"start_url": "/forum/",
"scope": "/forum/",
"dir": "auto",
"theme_color": "#4D698E",
"background_color": "#4D698E",
"display": "standalone",
"orientation": "any",
"icons": [
{
"src": "/assets/pwa-icon-48x48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "/assets/pwa-icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "/assets/pwa-icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "/assets/pwa-icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "/assets/pwa-icon-196x196.png",
"sizes": "196x196",
"type": "image/png"
},
{
"src": "/assets/pwa-icon-256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "/assets/pwa-icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
Other links are fine though. (example.com/forum
)
<link rel='manifest' href='/forum/webmanifest'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta id='apple-style' name='apple-mobile-web-app-status-bar-style' content='default'>
<meta id='apple-title' name='apple-mobile-web-app-title' content='Example Community'>
<link id='apple-icon-48' rel='apple-touch-icon' href='/forum/assets/pwa-icon-48x48.png'>
<link id='apple-icon-72' rel='apple-touch-icon' sizes='72x72' href='/forum/assets/pwa-icon-72x72.png'>
<link id='apple-icon-96' rel='apple-touch-icon' sizes='96x96' href='/forum/assets/pwa-icon-96x96.png'>
<link id='apple-icon-144' rel='apple-touch-icon' sizes='144x144' href='/forum/assets/pwa-icon-144x144.png'>
<link id='apple-icon-196' rel='apple-touch-icon' sizes='196x196' href='/forum/assets/pwa-icon-196x196.png'>
<link id='apple-icon-256' rel='apple-touch-icon' sizes='256x256' href='/forum/assets/pwa-icon-256x256.png'>
<link id='apple-icon-512' rel='apple-touch-icon' sizes='512x512' href='/forum/assets/pwa-icon-512x512.png'>