Open rs post and page "View" in a Custom Tab - #23366
Conversation
Keeps the user in the app instead of handing off to the external browser, matching how New Stats opens URLs.
Generated by 🚫 Danger |
|
|
|
|
|
Changes look straightforward, but I don't think Post view action is opening a Custom Tab like Page view action is. |
Without a package, the Custom Tab intent resolves to our own WPComPostReaderActivity alias for WP.com date-based post URLs, so "View" opened the Reader instead of the tab.
That is not expected, and I can't reproduce it. I applied a potential fix in 6c1266f - can you pull that and see if it fixes the problem? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #23366 +/- ##
==========================================
- Coverage 38.22% 38.22% -0.01%
==========================================
Files 2302 2302
Lines 127844 127845 +1
Branches 18048 18049 +1
==========================================
Hits 48873 48873
- Misses 74922 74923 +1
Partials 4049 4049 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
adalpari
left a comment
There was a problem hiding this comment.
It seems like your changes did the trick!
![]()
Btw, I asked Claude again, and it seems it was only reproducible with ***.worpdress.com sites. |


TL;DR
Currently the View action on the post and pages lists open the external browser. This PR changes this so they open in Chrome Custom Tabs.
Description
Description
PostRsListActivityandPagesRsListActivityswapActivityLauncher.openUrlExternalfor the existingActivityNavigator.openInCustomTab, which New Stats already uses. It falls back to the external browser if no Custom Tabs provider is available.Testing instructions
Posts list:
Pages list: