Skip to content

Commit

Permalink
Fix: subscription toggles template links should point to template, no…
Browse files Browse the repository at this point in the history
…t index page (#40142)

Fix by adding a query arg to template editing URLs.
  • Loading branch information
simison authored Nov 12, 2024
1 parent 7843920 commit f8d1e2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,15 @@ function SubscriptionsSettings( props ) {
? addQueryArgs( `${ siteAdminUrl }site-editor.php`, {
postType: 'wp_template',
postId: `${ themeStylesheet }//single`,
canvas: 'edit',
} )
: null;

const headerTemplateEditorUrl = siteAdminUrl
? addQueryArgs( `${ siteAdminUrl }site-editor.php`, {
postType: 'wp_template',
postId: `${ themeStylesheet }//index`,
canvas: 'edit',
} )
: null;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Subscription settings: fix template preview+edit link for three toggles

0 comments on commit f8d1e2e

Please sign in to comment.