wordpress-mobile / wordpress-mobile/WordPress-Android

Post links opened through the app should include the Reader in the backstack

Open
#14,496 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Status] Stale [Type] Enhancement Deeplinks
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

Opening a post link through the app should include the main activity in the backstack, so that when we press back we go back to the Reader.

Actual behavior

Pressing back after opening a post link through the app send us back to where we first opened the link.

Steps to reproduce the behavior
  1. Send yourself an email with a post link (check below for example of supported URLs).
  2. On a mobile device with the app installed, click the link in your email via your email app and choose to open it with the WordPress app.
  3. Notice the post in the WordPress app.
  4. Press back.
  5. Notice that you're back at your email app.

Currently supported URL patterns for post links:

  • http[s]://wordpress.com/read/blogs/{blogId}/posts/{postId}
  • http[s]://wordpress.com/read/feeds/{feedId}/posts/{feedItemId}
  • http[s]://{username}.wordpress.com/{year}/{month}/{day}/{postSlug}

Post link examples:

Tested on Pixel 3XL, Android 11, WPAndroid 17.1

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 tracing the app's post-link handling and the main activity entry point for the supported URL patterns. Reproduce the flow from an external email app on Android and inspect the back navigation. Done means pressing back from the opened post returns to the Reader rather than the app that supplied the link.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.