Skip to content

"Add To Home Screen" creates a bookmark with a broken "startapp&addToHomeScreen" parameter #1979

@alexeyhimself

Description

@alexeyhimself

Checklist

  • [+] I am reporting an issue in existing functionality that does not work as intended
  • [+] I've searched for existing GitHub issues

Description

While creating a bookmark for a Mini App using "Add To Home Screen", Mini App offers to save a bookmark in a https://t.me/botname_bot?startapp&addToHomeScreen broken format (& between startapp key and addToHomeScreen value) instead of valid and working format: https://t.me/botname_bot?startapp=addToHomeScreen. This leads to not passing addToHomeScreen parameter in start_params into Mini App: window.Telegram.WebApp.initDataUnsafe.start_param is undefined, as well as it is not passed in GET parameters.

Expected Behavior

Mini App on "Add to Home Screen" offers to create a bookmark for https://t.me/botname_bot?startapp=addToHomeScreen URL and addToHomeScreen parameter exists both in GET URL and in window.Telegram.WebApp.initDataUnsafe.start_param.

Actual Behavior

Mini App on "Add to Home Screen" offers to create a bookmark for https://t.me/botname_bot?startapp&addToHomeScreen URL and addToHomeScreen is missing both in GET URL and in window.Telegram.WebApp.initDataUnsafe.start_param.

Steps to Reproduce

  1. Open Mini App
  2. Click on 3 dots top-right corner menu
  3. Select "Add to Home Screen" menu option
  4. Check URL of the bookmark that is about to be created

Screenshots and Videos

Image

Environment

Device: iPhone 7
iOS version: 15.8.5
App version: 12.3.2

See Also

Looks like the same on Android. Should I submit a separate bug for Android as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions