mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
25.43.2019 0f1ddc54a1e194f42248131d1094d86eb01f5aa8
Fix for newUrl if root directory of backup has only one child dir the server steps automatically in.
1 files modified
3 ■■■■ changed files
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 3 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -113,7 +113,8 @@
                    let newUrl = this.props.match.url;
                    if (currentDirectory) {
                        newUrl += `/${currentDirectory}`;
                        // Avoid double leading slash occurring if top directory of backup has only one single sub directory the server steps automatically in:
                        newUrl += newUrl.endsWith('/') ? currentDirectory : `/${currentDirectory}`;
                    }
                    if (newUrl !== this.props.location.pathname) {