Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions play/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
<!-- App Design -->
<meta name="msapplication-TileColor" content="{{ themeColor }}" />
<meta name="msapplication-TileImage" content="{{ msApplicationTileImage }}" />
<meta name="theme-color" content="{{ themeColor }}" />
<meta name="theme-color" content="#000000" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Universe" />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
Expand All @@ -44,7 +46,7 @@
{{#favIcons}}
<link rel="{{ rel }}" type="image/png" sizes="{{ sizes }}" href="{{ src }}" />
{{/favIcons}}
<link rel="manifest" href="/static/images/favicons/manifest.json?url={{ url }}" />
<link rel="manifest" href="/manifest.webmanifest" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve room URL in installed PWA launch target

Linking index.html to the static /manifest.webmanifest makes every install use the hardcoded start_url: "/" from that file, whereas the previous manifest URL included ?url={{ url }} and displayManifestJson derived the launch URL from the current room path. In deployments where users install from a room URL like /@/..., launching the installed app will now always send them to / instead of back to that room, which is a functional regression for deep-linked worlds.

Useful? React with 👍 / 👎.


<style>
/*hide cowebsite container before scss is loaded*/
Expand Down
23 changes: 23 additions & 0 deletions play/public/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "BAWES Universe",
"short_name": "Universe",
"description": "BAWES Universe — a virtual world",
"start_url": "/",
"display": "fullscreen",
"orientation": "landscape",
"background_color": "#000000",
"theme_color": "#000000",
"icons": [
{
"src": "/static/universe-icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/static/universe-icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable any"
}
]
}
Binary file added play/public/static/universe-icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added play/public/static/universe-icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.