feat: search url query param handling

This commit is contained in:
Thea Schöbl
2022-11-01 12:58:29 +00:00
committed by Rainer Killinger
parent 38f0a30076
commit f349bd7233
7 changed files with 23 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 StApps
* Copyright (C) 2022 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -19,7 +19,6 @@ import {HebisSearchPageComponent} from './list/hebis-search-page.component';
const hebisRoutes: Routes = [
{path: 'hebis-search', component: HebisSearchPageComponent},
{path: 'hebis-search/:term', component: HebisSearchPageComponent},
{path: 'hebis-detail/:uid', component: HebisDetailComponent},
];

View File

@@ -37,7 +37,8 @@
<ion-toolbar color="primary" class="category-tab">
<ion-buttons class="ion-justify-content-between">
<ion-button
[routerLink]="['/search/' + (queryText || '')]"
[routerLink]="['/search']"
queryParamsHandling="preserve"
[routerAnimation]="routeAnimation"
fill="outline"
size="large"