diff --git a/app/ui/downloadCompleted.js b/app/ui/downloadCompleted.js
index acdd30448..20d0d36b0 100644
--- a/app/ui/downloadCompleted.js
+++ b/app/ui/downloadCompleted.js
@@ -2,6 +2,7 @@ const html = require('choo/html');
const assets = require('../../common/assets');
module.exports = function(state) {
+ const WEB_UI = state.WEB_UI;
const btnText = state.user.loggedIn ? 'okButton' : 'sendYourFilesLink';
return html`
- ${state.translate(btnText)}
diff --git a/docs/docker.md b/docs/docker.md
index 1eab4f3c4..8f12a3e47 100644
--- a/docs/docker.md
+++ b/docs/docker.md
@@ -99,6 +99,7 @@ See the table below for the variables and their default values.
| UI_CUSTOM_CSS | | Allows you to define a custom CSS file for custom styling |
| CUSTOM_FOOTER_TEXT | | Allows you to define a custom footer |
| CUSTOM_FOOTER_URL | | Allows you to define a custom URL in your footer |
+| TRY_SEND_URL | | Allows you to define a custom URL to link to after a successful download |
Side note: If you define a custom URL and a custom footer, only the footer text will display, but will be hyperlinked to the URL.
diff --git a/server/clientConstants.js b/server/clientConstants.js
index 37c69be96..14ed48162 100644
--- a/server/clientConstants.js
+++ b/server/clientConstants.js
@@ -15,6 +15,7 @@ module.exports = {
FOOTER_SOURCE_URL: config.footer_source_url,
CUSTOM_FOOTER_TEXT: config.custom_footer_text,
CUSTOM_FOOTER_URL: config.custom_footer_url,
+ TRY_SEND_URL: config.try_send_url,
COLORS: {
PRIMARY: config.ui_color_primary,
ACCENT: config.ui_color_accent
diff --git a/server/config.js b/server/config.js
index 7c0f43ccf..325380d5a 100644
--- a/server/config.js
+++ b/server/config.js
@@ -263,6 +263,11 @@ const conf = convict({
default: '',
env: 'CUSTOM_FOOTER_URL'
},
+ try_send_url: {
+ format: String,
+ default: '/',
+ env: 'TRY_SEND_URL'
+ },
ui_color_primary: {
format: String,
default: '#0a84ff',