mirror of
https://git.ikl.sh/132ikl/liteshort.git
synced 2023-08-10 21:13:04 +03:00
Fix link shortening when not using subdomain
This commit is contained in:
commit
fafc77a369
@ -194,7 +194,7 @@ app.secret_key = app.config['secret_key']
|
|||||||
app.config['SERVER_NAME'] = app.config['site_domain']
|
app.config['SERVER_NAME'] = app.config['site_domain']
|
||||||
|
|
||||||
|
|
||||||
@app.route('/favicon.ico')
|
@app.route('/favicon.ico', subdomain=app.config['subdomain'])
|
||||||
def favicon():
|
def favicon():
|
||||||
return send_from_directory(os.path.join(app.root_path, 'static'),
|
return send_from_directory(os.path.join(app.root_path, 'static'),
|
||||||
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
||||||
|
Loading…
Reference in New Issue
Block a user