Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use location.pathname for Customizer return URL
  • Loading branch information
noisysocks committed May 31, 2021
commit 4c57f3ad12ba8914d69824ecf82dc18e5cef87f2
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function WidgetAreas( { selectedWidgetAreaId } ) {
<Button
href={ addQueryArgs( 'customize.php', {
'autofocus[panel]': 'widgets',
return: 'widgets.php',
return: window.location.pathname,
} ) }
variant="tertiary"
>
Expand Down