Skip to content

Commit 02745e6

Browse files
[DSC-1552] fix method to return unaltered link if external as from specific and integration tests
1 parent d8dad3b commit 02745e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/core/services/internal-link.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class InternalLinkService {
4949
return currentSegments.startsWith('/') ? currentSegments : `/${currentSegments}`;
5050
}
5151

52-
return baseUrl.startsWith('/') ? baseUrl : `/${baseUrl}`;
52+
return baseUrl.startsWith('/') || (baseUrl.startsWith('http') && !baseUrl.startsWith(this.currentURL)) ? baseUrl : `/${baseUrl}`;
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)