From 25c87883908babde073390a2e2320a8e5880a87c Mon Sep 17 00:00:00 2001 From: Andrew Kennedy Date: Thu, 19 Aug 2021 05:35:24 -0700 Subject: [PATCH] fix: 401 error in share view open file button (#1495) --- frontend/src/views/Share.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Share.vue b/frontend/src/views/Share.vue index bad206ca..0d205b00 100644 --- a/frontend/src/views/Share.vue +++ b/frontend/src/views/Share.vue @@ -93,7 +93,7 @@ @@ -239,6 +239,11 @@ export default { const path = this.$route.path.split("/").splice(2).join("/"); return `${baseURL}/api/public/dl/${path}${queryArg}`; }, + inlineLink: function () { + let url = new URL(this.link); + url.searchParams.set("inline", "true"); + return url.href; + }, fullLink: function () { return window.location.origin + this.link; },