mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13:07 +00:00
w2p-86403 prevent from displaying on pages where rss feed doesn't make sense
This commit is contained in:
@@ -120,6 +120,17 @@ export class RSSComponent implements OnInit, OnDestroy {
|
||||
return route;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the router url contains the specified route
|
||||
*
|
||||
* @param {string} route
|
||||
* @returns
|
||||
* @memberof MyComponent
|
||||
*/
|
||||
hasRoute(route: string) {
|
||||
return this.router.url.includes(route);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates <link> tags in the header of the page
|
||||
* @param route The composed url to opensearch
|
||||
|
Reference in New Issue
Block a user