Skip to content

Commit 72f2ab0

Browse files
[RTY-260041]: meta tag
1 parent 2977783 commit 72f2ab0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/routes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,14 @@ async def create_short_url(
112112

113113
if not original_url or not is_valid_url(original_url): # validate the URL
114114
session["error"] = "Please enter a valid URL."
115+
session["original_url"] = original_url # preserve user input
115116
return RedirectResponse("/", status_code=status.HTTP_303_SEE_OTHER)
116117

117118
if not authorize_url(
118119
original_url
119120
): # authorize the URL based on whitelist/blacklist
120121
session["error"] = "This domain is not allowed."
122+
session["original_url"] = original_url # preserve user input
121123
return RedirectResponse("/", status_code=status.HTTP_303_SEE_OTHER)
122124

123125
short_code: Optional[str] = get_short_from_cache(original_url)

app/templates/footer.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ <h3>🔗 RZRO.link</h3>
77
<div class="footer-col">
88
<h4>Product</h4>
99
<ul>
10-
<li><a href="cache/list">CACHE URLs</a></li>
1110
<li><a href="#">API Documentation</a></li>
1211
<li><a href="#">Custom Branded Links</a></li>
1312
<li><a href="#">QR Code Engine</a></li>
@@ -16,7 +15,6 @@ <h4>Product</h4>
1615
<div class="footer-col">
1716
<h4>Support</h4>
1817
<ul>
19-
<li><a href="/docs"> UI docs</a></li>
2018
<li><a href="#">Help Center</a></li>
2119
<li><a href="#">System Status</a></li>
2220
<li><a href="#">Contact Us</a></li>

app/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77

8-
<title>{% block title %}tiny URL{% endblock %}</title>
8+
<title>{% block title %}rzro.link{% endblock %}</title>
99
<!-- OpenGraph Meta Tags -->
1010
<meta property="og:title" content="rzro.link | Smart URL Shortener">
1111
<meta property="og:description"

0 commit comments

Comments
 (0)