diff --git a/tabby-ssh/src/components/sftpPanel.component.ts b/tabby-ssh/src/components/sftpPanel.component.ts index 26067792..dfa8c42d 100644 --- a/tabby-ssh/src/components/sftpPanel.component.ts +++ b/tabby-ssh/src/components/sftpPanel.component.ts @@ -77,7 +77,7 @@ export class SFTPPanelComponent { if (item.isDirectory) { this.navigate(item.fullPath) } else if (item.isSymlink) { - const target = await this.sftp.readlink(item.fullPath) + const target = path.resolve(this.path, await this.sftp.readlink(item.fullPath)) const stat = await this.sftp.stat(target) if (stat.isDirectory) { this.navigate(item.fullPath)