what are the limitations of Django redirect?
Limitations of Django redirect?
Collapse
X
-
Tags: None
-
The disadvantages of Django redirect are:
1. Redirect that will not have effect
django.shortcut s.redirect() is easy to implement but the function does not execute a redirect, it only returns a redirect response object. You have to return this response object from view file. Else, no redirect will perform.
2. Issue with permanent redirects
Whenever a browser is receiving a permanent redirect response for the URL, it detects the response. After that, when you request the former URL in the future, the browser will not load the former instead it will directly take you to the new URL.
3. Security loophole in unvalidated redirects
Redirects are generally safe till the time any user input is used like URL parameter without suitable validation as redirect URL. It could lead to a phishing attack through an attacker.
These were some of the limitations of Django redirect.
Comment