diff --git a/frontend/src/app/modules/common/path-helper/path-helper.service.ts b/frontend/src/app/modules/common/path-helper/path-helper.service.ts index eeeb6ec8e1..6ce7fcfc81 100644 --- a/frontend/src/app/modules/common/path-helper/path-helper.service.ts +++ b/frontend/src/app/modules/common/path-helper/path-helper.service.ts @@ -74,6 +74,10 @@ export class PathHelperService { return this.staticBase + '/my/page'; } + public newsPath(newsId:string) { + return this.staticBase + '/news/' + newsId; + } + public loginPath() { return this.staticBase + '/login'; } diff --git a/frontend/src/app/modules/grids/widgets/news/news.component.ts b/frontend/src/app/modules/grids/widgets/news/news.component.ts index dd49040428..b224595cff 100644 --- a/frontend/src/app/modules/grids/widgets/news/news.component.ts +++ b/frontend/src/app/modules/grids/widgets/news/news.component.ts @@ -53,7 +53,7 @@ export class WidgetNewsComponent extends AbstractWidgetComponent implements OnIn } public newsPath(news:NewsResource) { - return `${this.pathHelper.appBasePath}/news/${news.id}`; + return this.pathHelper.newsPath(news.id!); } public newsProjectPath(news:NewsResource) {