Skip to content

Open blogs in external browser with custom domains #11423

Merged
khaykov merged 1 commit intodevelopfrom
issue-8884/external_browser_custom_domain
Mar 10, 2020
Merged

Open blogs in external browser with custom domains #11423
khaykov merged 1 commit intodevelopfrom
issue-8884/external_browser_custom_domain

Conversation

@jd-alexander
Copy link
Copy Markdown
Contributor

@jd-alexander jd-alexander commented Mar 10, 2020

Fixes #8884

Findings

The action that opens the external browser was using the current URL of the WebView which gets supplied with a URL that might have the .wordpress.com site address or preview params.

Solution

To utilize the shareable URL as the target URL for the external browser action since it doesn't contain preview parameters and it has the original post link.

Testing

Before carrying out this test ensure that the blog has a custom domain set as the primary domain for the blog.

  1. Open the app and go to pages or posts.
  2. Click View or Preview on the post.
  3. Click on the World icon which should open the external browser.
  4. Notice that the URL is that of a custom domain.

Reviewing

Only 1 reviewer is needed but anyone can review.

Submitter Checklist

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.
  • I have considered adding accessibility improvements for my changes.
  • If it's feasible, I have added unit tests.

@peril-wordpress-mobile
Copy link
Copy Markdown

You can test the changes on this Pull Request by downloading the APK here.

@khaykov khaykov self-assigned this Mar 10, 2020
Copy link
Copy Markdown
Contributor

@khaykov khaykov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well! 👍

@khaykov khaykov merged commit 297e677 into develop Mar 10, 2020
@khaykov khaykov deleted the issue-8884/external_browser_custom_domain branch March 10, 2020 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blog posts: View: Link always opens with site address instead of custom domain

2 participants