mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #656] Web app: the home-screen icon opens the page, not /web/ #654
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#654
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/656
Author: @needmorevram
Created: 10/29/2026
Status: 🔄 Open
Base:
main← Head:web-home-screen-start-url📝 Commits (1)
e6c9cffWeb app: the home-screen icon opens the page, not /web/📊 Changes
3 files changed (+35 additions, -2 deletions)
View changed files
📝
serve/server.py(+10 -0)📝
serve/test_server.py(+23 -0)📝
serve/web/manifest.webmanifest(+2 -2)📄 Description
What
Adding the web app to an iOS home screen saved
http://<host>:8080/web/, which the server answers with a 404, so the icon opened an error page.The cause is the manifest (
serve/web/manifest.webmanifest):start_urlandscopewere"./", and a manifest's URLs resolve against the manifest's own path,/web/manifest.webmanifest. So"./"meant/web/, not the page.start_urlandscopeare"../": they resolve to the page. They stay relative, so the app still works behind a path-prefixed proxy (#82)./weband/web/redirect to the page (302 with a relativeLocation, query kept). Icons already saved with the old start URL open the app too.Tested
serve/test_server.py+serve/test_dashboard.py: 151 tests pass.WebApp.test_home_screen_start_url:start_urlandscoperesolve to/;/web/,/weband/web/?q=hiredirect to the page;/web/gives the page.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.