social-app icon indicating copy to clipboard operation
social-app copied to clipboard

Composer doesn't prompt to add a link card when opened from an intent URL

Open gesteves opened this issue 1 year ago • 0 comments

Describe the bug

When opening the composer from an intent URL like https://bsky.app/intent/compose?text= and the text contains a URL, the composer doesn't prompt to add a link card for the URL until the user types something else.

To Reproduce

Steps to reproduce the behavior:

  1. Open an intent URL with a link in it, such as https://bsky.app/intent/compose?text=Alf!%20https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FALF_(character)
  2. Note that the composer doesn't have the prompt to add a link card
  3. Enter anything else in the text area, like a space
  4. The "add link card" prompt appears

Expected behavior

If the text passed in the intent URL contains a link, the composer should open with the "add link card" prompt present.

Screenshots

Composer open after opening the intent URL:

Capture-2024-02-28-201103

After adding a space to the text:

Capture-2024-02-28-201121

Details

  • Platform: Desktop web (Arc 1.31.2 on macOS Sonoma 14.3.1, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36)
  • Platform version: Build version: 1.70.0; Platform: web
  • App version: N/A

gesteves avatar Feb 29 '24 03:02 gesteves