wordpress-mobile / wordpress-mobile/WordPress-Android

Post deeplinks should open the correct post in the Editor

Open
#14,560 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Medium [Type] Bug Deeplinks Posting/Editing
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

When clicking on a deeplink like wordpress://post?blogId=X&postId=Y I expect the given post to be opened in the editor.

Actual behavior

The editor opens for a new post instead.

Steps to reproduce the behavior
  • Make sure you're logged in with a site with remote id X and a post with remote ID Y.
  • Create a URL like wordpress://post?blogId=X&postId=Y and use it in the following adb command:
adb shell am start \
 -W -a android.intent.action.VIEW \
 -c android.intent.category.BROWSABLE \
 -d "wordpress://post?blogId=X&postId=Y"
  • Notice that the editor is opened for the correct site but that instead of loading the correct post, it is empty, as if a new post was being written.
Tested on Pixel 3XL, Android 11, WPAndroid alpha-291

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the wordpress://post?blogId=X&postId=Y deeplink with the provided adb shell am start command, then trace Android deeplink handling into the editor launch. Done means the editor opens the specified post for the matching site instead of an empty new-post editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.