Skip to content

Commit

Permalink
Fix view-site not working
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed May 2, 2024
1 parent 883d8e5 commit 3ea1022
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ SPEC CHECKSUMS:
Gifu: 416d4e38c4c2fed012f019e0a1d3ffcb58e5b842
Gravatar: 51437de6811c1d8d6f60c52985f2ca00a85cfc8e
Gridicons: 4455b9f366960121430e45997e32112ae49ffe1d
Gutenberg: cd6259542b7078fe875d51b21c962d02bac6c032
Gutenberg: 3117b6fe578fb7f0bb75377ba96f436ee05c30fe
JTAppleCalendar: 16c6501b22cb27520372c28b0a2e0b12c8d0cd73
Kanvas: cc027f8058de881a4ae2b5aa5f05037b6d054d08
MediaEditor: d08314cfcbfac74361071a306b4bc3a39b3356ae
Expand Down
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
24.9
-----
* [*] Add "Parent Page" to "Page Settings" [#23136]
* [*] Make it easier to "Share" and "Blaze" a published post with an updated success view [##23128]

24.8
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ struct PostNoticePublishSuccessView: View {
}

private func buttonOpenDomainTapped() {
guard let url = URL(string: post.blog.primaryDomainAddress) else { return }
guard let urlString = post.blog.homeURL as String?,
let url = URL(string: urlString) else {
return
}
WPAppAnalytics.track(.openedViewSite, withProperties: [WPAppAnalyticsKeyTapSource: "publish_success_view"], with: post.blog)
UIApplication.shared.open(url)
}

Expand Down

0 comments on commit 3ea1022

Please sign in to comment.