@arsedizioni/ars-utils 21.2.356 → 21.2.357
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3739,14 +3739,21 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
3739
3739
|
if (!id || id.length === 0)
|
|
3740
3740
|
return;
|
|
3741
3741
|
if (id.indexOf('?') !== -1) {
|
|
3742
|
-
if (id.startsWith('/api'))
|
|
3742
|
+
if (id.startsWith('/api')) {
|
|
3743
|
+
console.log('Navigating to service URL: ' + this.clipperService.serviceUri + id.substring(4));
|
|
3743
3744
|
this.navigateByUrl(this.clipperService.serviceUri + id.substring(4));
|
|
3744
|
-
|
|
3745
|
+
}
|
|
3746
|
+
else if (!id.startsWith(this.clipperService.serviceUri)) {
|
|
3747
|
+
console.log('Navigating to external URL: ' + this.clipperService.serviceUri + id);
|
|
3745
3748
|
this.navigateByUrl(this.clipperService.serviceUri + id);
|
|
3746
|
-
|
|
3749
|
+
}
|
|
3750
|
+
else {
|
|
3751
|
+
console.log('Navigating to document id: ' + id);
|
|
3747
3752
|
this.navigateByUrl(id);
|
|
3753
|
+
}
|
|
3748
3754
|
}
|
|
3749
3755
|
else {
|
|
3756
|
+
console.log('Navigating to document id: ' + this.clipperService.serviceUri + '/documents/render/?query=&id=' + id);
|
|
3750
3757
|
this.navigateByUrl(this.clipperService.serviceUri + '/documents/render/?query=&id=' + id);
|
|
3751
3758
|
}
|
|
3752
3759
|
}
|
|
@@ -3814,7 +3821,9 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
3814
3821
|
this.previewFile(url);
|
|
3815
3822
|
}
|
|
3816
3823
|
else {
|
|
3824
|
+
console.log('Navigating to URL (prerender): ' + url);
|
|
3817
3825
|
this.clipperService.preRender().subscribe(() => {
|
|
3826
|
+
console.log('Navigating to URL (url): ' + url);
|
|
3818
3827
|
this.busy.set(url.indexOf('documents/render/item') === -1);
|
|
3819
3828
|
this.url.set(url);
|
|
3820
3829
|
});
|