Skip to content

Commit

Permalink
Edit Site: Fix sidebar template author navigation (WordPress#67382)
Browse files Browse the repository at this point in the history
Co-authored-by: tyxla <[email protected]>
Co-authored-by: youknowriad <[email protected]>
  • Loading branch information
3 people authored and im3dabasia committed Dec 4, 2024
1 parent 61b73d7 commit c8db2cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useMemo } from '@wordpress/element';
import { __experimentalItemGroup as ItemGroup } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { privateApis as routerPrivateApis } from '@wordpress/router';
import { addQueryArgs } from '@wordpress/url';

/**
* Internal dependencies
Expand All @@ -25,7 +26,7 @@ function TemplateDataviewItem( { template, isActive } ) {

return (
<SidebarNavigationItem
to={ `/template?activeView=${ text }` }
to={ addQueryArgs( '/template', { activeView: text } ) }
icon={ icon }
aria-current={ isActive }
>
Expand Down

0 comments on commit c8db2cb

Please sign in to comment.