mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
fix: noscript redirect when nojs route is disabled
This commit is contained in:
parent
f69ea305f1
commit
29eb1c9550
@ -5,7 +5,7 @@
|
|||||||
#}
|
#}
|
||||||
<noscript>
|
<noscript>
|
||||||
<style>body > section:not(#noscript) { display: none !important; }</style>
|
<style>body > section:not(#noscript) { display: none !important; }</style>
|
||||||
{% if noscriptRefreshUrl !== null -%}
|
{% if config.routes.nojs or noscriptRefreshUrl -%}
|
||||||
<!-- Redirect after 3 seconds -->
|
<!-- Redirect after 3 seconds -->
|
||||||
<meta http-equiv="refresh" content="3;url={{ noscriptRefreshUrl or 'nojs' }}">
|
<meta http-equiv="refresh" content="3;url={{ noscriptRefreshUrl or 'nojs' }}">
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</p>
|
</p>
|
||||||
{% if noscriptMessage or (noscriptMessage === null) -%}
|
{% if noscriptMessage or (noscriptMessage === null) -%}
|
||||||
{{ noscriptMessage | safe }}
|
{{ noscriptMessage | safe }}
|
||||||
{%- else -%}
|
{%- elif config.routes.nojs -%}
|
||||||
<p>If you are not automatically redirected to our No-JS uploader, <a href="nojs">click here</a>.</p>
|
<p>If you are not automatically redirected to our No-JS uploader, <a href="nojs">click here</a>.</p>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user