We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9181dc commit 5585c20Copy full SHA for 5585c20
webui/src/components/SnapshotBrowser.tsx
@@ -231,7 +231,15 @@ const FileNode = ({
231
backrestService
232
.getDownloadURL({ value: snapshotOpId })
233
.then((resp) => {
234
- window.open(resp.value + entry.path, "_blank");
+ const encodePathKeepSlashes = (p: string) =>
235
+ p
236
+ .split("/")
237
+ .map((seg) => encodeURIComponent(seg))
238
+ .join("/");
239
+ window.open(
240
+ resp.value + encodePathKeepSlashes(entry.path!),
241
+ "_blank"
242
+ );
243
})
244
.catch((e) => {
245
alert("Failed to fetch download URL: " + e.message);
0 commit comments