File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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 "
You can’t perform that action at this time.
0 commit comments