wordpress-mobile / wordpress-mobile/WordPress-Android
Post links opened through the app should include the Reader in the backstack
Nobody has claimed this yet.
- 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
- Send yourself an email with a post link (check below for example of supported URLs).
- 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.
- Notice the post in the WordPress app.
- Press back.
- 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:
- https://discover.wordpress.com/2018/03/22/how-to-create-website-logo/
- https://wordpress.com/read/blogs/53424024/posts/32898
Tested on Pixel 3XL, Android 11, WPAndroid 17.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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