Skip to content
Snippets Groups Projects
Commit 4772ef60 authored by Jonas Leder's avatar Jonas Leder
Browse files

added comment, why don't use 301 redirect

parent 8e64f0d2
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,6 @@ def redirectShortenURL(request, short_url):
print(Exception)
cursor.execute('INSERT INTO ANALYTICS (SHORT_URL) VALUES ("' + host + "/" + short_url.lower() + "\")")
return redirect(url)
return redirect(url) #I use temp redirect here, because the owner of a link can delete it. If then the link is reused, the user will maybe redirected to the wrong page
else:
abort(404)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment