Remove persisted query on return to parent product from variation (#36365)

* Remove persisted query on return to parent product from variation

* Add changelog entry
This commit is contained in:
Joshua T Flowers 2023-01-12 09:20:46 -08:00 committed by GitHub
parent 54c0acf8cd
commit ad59769f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -29,7 +29,11 @@ export default function useProductVariationNavigation( {
const persistedQuery = getPersistedQuery();
return {
actionHref: getNewPath( persistedQuery, `/product/${ product.id }` ),
actionHref: getNewPath(
persistedQuery,
`/product/${ product.id }`,
{}
),
prevHref: prevVariationId
? getNewPath(
persistedQuery,

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
Remove persisted query on return to parent product from variation