Wordpress-android: "This post no longer exists" for links that use the non primary domain

Created on 9 Mar 2021  路  3Comments  路  Source: wordpress-mobile/WordPress-Android

It was reported in 3771371-zd-woothemes that when opening a link through the Chrome browser, the app shows "The post no longer exists".

Expected behavior

I would expect the app would be able to open up the post that I clicked through the Chrome browser.

Actual behavior

When I click a link that's pointing to the URL with a non-primary domain on Chrome browser, choose to open up with the WordPress app, I see a "The post no longer exists" error.

Steps to reproduce the behavior

  1. Visit a WordPress.com site that has a custom domain set as the primary domain on a Chrome browser (e.g. https://premiumtestsite20190311.blog/)
  2. Click a link on the site that is pointing to the WordPress.com site address (see this image for the link to click)
  3. Open up the link with WordPress app
  4. See "This post no longer exists" error

Video recording: https://d.pr/v/JCZtZS/QfCufdf8mG

Tested on OPPO Reno 4, Android 11, WPAndroid 16.8-rc-2
Webviews [Type] Bug

Most helpful comment

Thanks for including a video @reginabally!

Tested and confirmed that links opened from Chrome into the app that are pointing to the *.wordpress.com version of a URL on a site using a custom domain results in a "This post no longer exists" message.

My testing steps:

  1. Be on a site with a custom domain set as the primary domain.
  2. Copy the URL for any post from the site.
  3. Create a new post and add a link to the URL from the previous step.
  4. Add another link to the URL from the previous step, except change the custom domain to the *.wordpress.com version.
  5. Publish the post.
  6. Open the post in Chrome.
  7. Click on the 2nd link and choose to open the link in the app when prompted.

Result: an error appears saying "This post no longer exists." It appears the in-app browser does not properly redirect *.wordpress.com links to their custom domains. (1m35s)

*.wordpress.com version of link|Opt to open link in app|Error
---|---|---
link-example|open-with-wordpress|this-post-no-longer-exists

Tested with WPAndroid 16.9-rc-1 on Pixel 3 Android 11.

Notes: the same link works properly when opened using a web browser鈥攊t redirects to the custom domain version of the URL. Links in the app to the custom domain do not offer to open the link in the app (as expected).

All 3 comments

Thanks for including a video @reginabally!

Tested and confirmed that links opened from Chrome into the app that are pointing to the *.wordpress.com version of a URL on a site using a custom domain results in a "This post no longer exists" message.

My testing steps:

  1. Be on a site with a custom domain set as the primary domain.
  2. Copy the URL for any post from the site.
  3. Create a new post and add a link to the URL from the previous step.
  4. Add another link to the URL from the previous step, except change the custom domain to the *.wordpress.com version.
  5. Publish the post.
  6. Open the post in Chrome.
  7. Click on the 2nd link and choose to open the link in the app when prompted.

Result: an error appears saying "This post no longer exists." It appears the in-app browser does not properly redirect *.wordpress.com links to their custom domains. (1m35s)

*.wordpress.com version of link|Opt to open link in app|Error
---|---|---
link-example|open-with-wordpress|this-post-no-longer-exists

Tested with WPAndroid 16.9-rc-1 on Pixel 3 Android 11.

Notes: the same link works properly when opened using a web browser鈥攊t redirects to the custom domain version of the URL. Links in the app to the custom domain do not offer to open the link in the app (as expected).

Thanks for reproducing this @reginabally and @designsimply 馃攩 I have started my investigation into the issue and once it has been resolved and tested, I will provide a link to the APK so you can test while the PR is being reviewed. 馃檱馃従

I was able to resolve the issue @reginabally @designsimply 馃槃 . If you wish to give it a try you can download the APK .

Was this page helpful?
0 / 5 - 0 ratings