diff --git a/claims/linking/linkingGeneric.component.html b/claims/linking/linkingGeneric.component.html
index 417177d0..9d0b1379 100644
--- a/claims/linking/linkingGeneric.component.html
+++ b/claims/linking/linkingGeneric.component.html
@@ -28,11 +28,10 @@
-
-
+
+
Back to {{getEntityName(inlineEntity.type, false)}}
diff --git a/claims/linking/linkingGeneric.component.ts b/claims/linking/linkingGeneric.component.ts
index 7e363f9e..4d132a72 100644
--- a/claims/linking/linkingGeneric.component.ts
+++ b/claims/linking/linkingGeneric.component.ts
@@ -15,6 +15,7 @@ import {Breadcrumb} from "../../utils/breadcrumbs/breadcrumbs.component";
import {OpenaireEntities} from "../../utils/properties/searchFields";
import {StringUtils} from "../../utils/string-utils.class";
import {RouterHelper} from "../../utils/routerHelper.class";
+import { Location } from '@angular/common';
@Component({
selector: 'linking-generic',
@@ -50,7 +51,8 @@ export class LinkingGenericComponent {
constructor (private _router: Router, private route: ActivatedRoute, private entitySearch:EntitiesSearchService,
private _meta: Meta, private _title: Title, private _piwikService:PiwikService,
- private seoService: SEOService, private helper: HelperService, private cdr: ChangeDetectorRef ) {
+ private seoService: SEOService, private helper: HelperService, private cdr: ChangeDetectorRef,
+ private location: Location) {
}
subscriptions = [];
@@ -201,4 +203,10 @@ export class LinkingGenericComponent {
private getEntityName (entityType:string, plural:boolean) {
return StringUtils.getEntityName(entityType, plural);
}
+
+ back(): void {
+ if(typeof document !== 'undefined') {
+ this.location.back();
+ }
+ }
}