mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
🐛 go to first page after submit search
(cherry picked from commit 88a7088b47
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
83de2c5769
commit
a343991e74
@@ -114,7 +114,14 @@ export class SearchFormComponent implements OnChanges {
|
||||
* @param data Updated parameters
|
||||
*/
|
||||
updateSearch(data: any) {
|
||||
const queryParams = Object.assign({}, data);
|
||||
const goToFirstPage = { 'spc.page': 1 };
|
||||
|
||||
const queryParams = Object.assign(
|
||||
{
|
||||
...goToFirstPage
|
||||
},
|
||||
data
|
||||
);
|
||||
|
||||
void this.router.navigate(this.getSearchLinkParts(), {
|
||||
queryParams: queryParams,
|
||||
|
Reference in New Issue
Block a user