From 29eb1c9550fb4eacc60c7dd3bd70d8ad7f991ee6 Mon Sep 17 00:00:00 2001
From: Bobby
Date: Wed, 6 Dec 2023 04:58:43 +0700
Subject: [PATCH] fix: noscript redirect when nojs route is disabled
---
views/_partial/noscript-refresh.njk | 2 +-
views/_partial/noscript.njk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/views/_partial/noscript-refresh.njk b/views/_partial/noscript-refresh.njk
index 10dd7df..07ddf78 100644
--- a/views/_partial/noscript-refresh.njk
+++ b/views/_partial/noscript-refresh.njk
@@ -5,7 +5,7 @@
#}
{% if noscriptMessage or (noscriptMessage === null) -%}
{{ noscriptMessage | safe }}
- {%- else -%}
+ {%- elif config.routes.nojs -%}
If you are not automatically redirected to our No-JS uploader, click here.
{%- endif %}