diff --git a/webapp/src/app/modules/news-detail/news-detail.component.html b/webapp/src/app/modules/news-detail/news-detail.component.html index cdb886cf..d1bd9864 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.html +++ b/webapp/src/app/modules/news-detail/news-detail.component.html @@ -116,9 +116,12 @@ track keyword; let i = $index ) { - {{ - keyword - }} + {{ keyword }} } } @else {
Keine Schlüsselwörter gefunden.
diff --git a/webapp/src/app/modules/news-detail/news-detail.component.ts b/webapp/src/app/modules/news-detail/news-detail.component.ts index e93ec298..8f721f20 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.ts +++ b/webapp/src/app/modules/news-detail/news-detail.component.ts @@ -6,7 +6,7 @@ import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; - +import { Router } from '@angular/router'; import { WorksService } from '../../api'; interface MentionedPerson { @@ -45,6 +45,7 @@ export class NewsDetailComponent implements OnInit { private readonly httpClient = inject(HttpClient); private readonly worksService = inject(WorksService); private readonly location = inject(Location); + private readonly router = inject(Router); article: NewsArticleDetail | null = null; loading = false; @@ -70,7 +71,11 @@ export class NewsDetailComponent implements OnInit { navigateBack(): void { this.location.back(); } - + onKeywordClick(keyword: string): void { + this.router.navigate(['/keywords'], { + queryParams: { selected: keyword, manual: keyword }, + }); + } formatDate(dateStr?: string | null): string { if (!dateStr) return '-'; const date = new Date(dateStr);