diff --git a/files/__main__.py b/files/__main__.py index 0137a5ea8..090bd6c4c 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -121,11 +121,12 @@ def after_request(response): response.headers.add("X-Frame-Options", "deny") return response -@app.route("/", subdomain="www") -@app.route("/", subdomain="old") -@app.route("/", subdomain="www") -@app.route("/", subdomain="old") -def sub_redirect(path): +@app.route("/", subdomain="") +def sub_redirect(whatever): + return redirect(request.full_path) + +@app.route("/", subdomain="") +def sub_redirect(path, whatever): return redirect(request.full_path) from files.routes import * \ No newline at end of file