Skip to content

Commit

Permalink
Merge pull request guardian#4107 from guardian/retain-pinboard-query-…
Browse files Browse the repository at this point in the history
…params
  • Loading branch information
twrichards authored Jun 15, 2023
2 parents ca3e776 + 1582764 commit f9e5d42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kahuna/public/js/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ search.config(['$stateProvider', '$urlMatcherFactoryProvider',
}
});

const extraQueryParamsNotUsedByGridDirectly = [
'expandPinboard', 'pinboardId', 'pinboardItemId'
];

$stateProvider.state('search.results', {
url: [
'search?{query:Query}',
Expand All @@ -163,7 +167,8 @@ search.config(['$stateProvider', '$urlMatcherFactoryProvider',
'hasRightsAcquired',
'hasCrops',
'syndicationStatus',
'persisted'
'persisted',
...extraQueryParamsNotUsedByGridDirectly // otherwise router will drop them
].join('&'),
// Non-URL parameters
params: {
Expand Down

0 comments on commit f9e5d42

Please sign in to comment.