From 72f2ab055d69912ea6c50a3cdfc5d69860390862 Mon Sep 17 00:00:00 2001 From: Ravindrayadav04 Date: Fri, 13 Mar 2026 10:30:38 +0530 Subject: [PATCH 01/12] [RTY-260041]: meta tag --- app/routes.py | 2 ++ app/templates/footer.html | 2 -- app/templates/layout.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/routes.py b/app/routes.py index 034d54c..e93eef8 100644 --- a/app/routes.py +++ b/app/routes.py @@ -112,12 +112,14 @@ async def create_short_url( if not original_url or not is_valid_url(original_url): # validate the URL session["error"] = "Please enter a valid URL." + session["original_url"] = original_url # preserve user input return RedirectResponse("/", status_code=status.HTTP_303_SEE_OTHER) if not authorize_url( original_url ): # authorize the URL based on whitelist/blacklist session["error"] = "This domain is not allowed." + session["original_url"] = original_url # preserve user input return RedirectResponse("/", status_code=status.HTTP_303_SEE_OTHER) short_code: Optional[str] = get_short_from_cache(original_url) diff --git a/app/templates/footer.html b/app/templates/footer.html index 18064fc..1361738 100644 --- a/app/templates/footer.html +++ b/app/templates/footer.html @@ -7,7 +7,6 @@

๐Ÿ”— RZRO.link

+ + + + - \ No newline at end of file + \ No newline at end of file diff --git a/app/templates/index.html b/app/templates/index.html index 01517f1..35ca7e8 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,5 +1,5 @@ {% extends "layout.html" %} {% block content %} -
+

Shorten Your Links

@@ -7,8 +7,13 @@

Shorten Your Links

value="{{ original_url or '' }}" required>
-
Analytics Enabled
+
+ + Analytics Enabled +
{% if error %}
@@ -47,7 +52,7 @@

Recently Shortened

{{ url.original_url }}
{% endfor %}
-
+