iOS: when adding the "To-do List" page to home screen, link is changed to "Explore Projects"
Issue:
I want to be able to add to my iPhone home screen a link to my GitLab To-do List, but the PWA manifest hardcodes the starting URL to the Explore Projects page. This adds manual work every time I want to quickly view my latest To-Dos.
How to reproduce:
- Open Safari
- Navigate to gitlab.com
- Authenticate
- Navigate to gitlab.com/dashboard/todos
- Tap the "Share" button
- Tap "Add to Home Screen"
- In the next screen, the URL shown is https://gitlab.com/explore/projects - and cannot be edited:
- After adding the link to home screen and tapping the icon, the Explore Projects page is opened in Safari.
- 2 taps are then required to navigate to the correct page - open the navigation then tap on the to-do list icon - and wait for the page to refresh.
Investigation
- This URL is controlled by the "start_url" parameter in the Web Application (PWA) Manifest (manifest.json)
- Rendered file: https://gitlab.com/-/manifest.json
"start_url": "/explore/projects"
- Source file: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/views/pwa/manifest.json.erb#L6
"start_url": "<%= explore_projects_path %>",
- PWA manifest was introduced in this commit: 99d1d365.
Edited by Sacha Guyon
