From f015c85514256fc5533b865b0cdeb8c24b4ad98a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 24 Dec 2021 05:19:48 +0200 Subject: [PATCH] sfd --- files/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index b38a45e89..9d322e22e 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -124,11 +124,11 @@ def after_request(response): @app.route("/", subdomain="www") @app.route("/", subdomain="old") def sub_redirect(): - return redirect(request.full_path) + return redirect(f"https://{app.config['SERVER_NAME']}") @app.route("/", subdomain="www") @app.route("/", subdomain="old") def sub_redirect2(path): - return redirect(request.full_path) + return redirect(f"https://{app.config['SERVER_NAME']}{request.full_path}") from files.routes import * \ No newline at end of file