fix: Don't redirect using js script for tlds
All checks were successful
Build Docker / Build Image (push) Successful in 2m27s

This commit is contained in:
2025-09-22 13:44:03 +10:00
parent ef90f4c148
commit 902e87eaee

View File

@@ -21,7 +21,7 @@ exchange = {
} }
DEV = os.getenv('DEV', 'false').lower() in ['true', '1', 'yes'] DEV = os.getenv('DEV', 'false').lower() in ['true', '1', 'yes']
tlds = [] tlds = ['australia', 'newzealand']
#Assets routes #Assets routes
@app.route('/assets/<path:path>') @app.route('/assets/<path:path>')
@@ -412,7 +412,7 @@ def index():
tld = tlds[0] tld = tlds[0]
hns_scripts = '' hns_scripts = ''
return render_template('/tlds/'+tld+'.html',year=year, handshake_scripts=hns_scripts) return render_template('index.html',year=year, handshake_scripts=hns_scripts)
@app.route('/<path:path>') @app.route('/<path:path>')
def catch_all(path): def catch_all(path):