aboutsummaryrefslogtreecommitdiff
path: root/app/main.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-08-07 16:07:45 -0500
committerParker <contact@pkrm.dev>2024-08-07 16:07:45 -0500
commitcf6acce1203d6772029dcd22a82ac1bbbc5e0812 (patch)
tree4a2d9e3a3d3ba6dd932656496ef724e9a9014232 /app/main.py
parent143378ce4bcfcc652532ae07cd8837152f78196b (diff)
Fix redirecting
Diffstat (limited to 'app/main.py')
-rw-r--r--app/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py
index 5f6a87b..0d48123 100644
--- a/app/main.py
+++ b/app/main.py
@@ -15,6 +15,7 @@ import random
from models import User
from database import *
from app.util.log import log
+from var import BASE_URL
class FlaskUser(UserMixin):
@@ -140,7 +141,7 @@ Log all records for visits to shortened links
def log_redirect(link):
# If the `link` is more than 5 characters, ignore
if len(link) > 5:
- return
+ return redirect(BASE_URL)
# If the `link` is one of the registered routes, ignore
if link in ["login", "signup", "dashboard", "logout", "api"]: