mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-1027] Trash - page crases when page contains deleted sites (#82)
* resolve routerLink * restore index value * length condition
This commit is contained in:
committed by
Denys Vuika
parent
319594d63b
commit
0ec6e0cd14
@@ -50,7 +50,12 @@ export class LocationLinkComponent implements OnInit {
|
||||
const parent = value.elements[value.elements.length - 1];
|
||||
const area = isLibraryPath ? '/libraries' : '/personal-files';
|
||||
|
||||
this.link = [ area, parent.id ];
|
||||
if (!isLibraryPath) {
|
||||
this.link = [ area, parent.id ];
|
||||
} else {
|
||||
// parent.id could be 'Site' folder or child as 'documentLibrary'
|
||||
this.link = [ area, (parent.name === 'Sites' ? {} : parent.id) ];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,7 +110,7 @@ export class LocationLinkComponent implements OnInit {
|
||||
if (elements[0].name === 'Company Home') {
|
||||
elements[0].name = 'Personal Files';
|
||||
|
||||
if (elements.length > 1) {
|
||||
if (elements.length > 2) {
|
||||
if (elements[1].name === 'Sites') {
|
||||
const fragment = elements[2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user