use path helper for news url

pull/7522/head
ulferts 5 years ago
parent b4954d5082
commit caf89a22e4
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 4
      frontend/src/app/modules/common/path-helper/path-helper.service.ts
  2. 2
      frontend/src/app/modules/grids/widgets/news/news.component.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';
}

@ -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) {

Loading…
Cancel
Save