Add noscript page to the embed blueprint

This commit is contained in:
Jeremy Zhang 2018-01-04 23:27:05 +00:00
parent 727aa17e12
commit 03aa5f33a7
3 changed files with 5 additions and 1 deletions

View File

@ -87,3 +87,7 @@ def signin_complete():
@embed.route("/login_discord")
def login_discord():
return redirect(url_for("user.login_authenticated", redirect=url_for("embed.signin_complete", _external=True)))
@embed.route("/noscript")
def noscript():
return render_template("noscript.html.j2")

View File

@ -11,7 +11,7 @@
<!--Check whether JavaScript is enabled, otherwise redirect to error page-->
<noscript>
<meta http-equiv="refresh" content="0; URL=noscript.html">
<meta http-equiv="refresh" content="0; URL={{ url_for("embed.noscript") }}">
</noscript>
<!--Let browser know website is optimized for mobile-->