Limitations of Django redirect?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aakashdata
    New Member
    • Apr 2019
    • 7

    Limitations of Django redirect?

    what are the limitations of Django redirect?
  • animeshagrawal
    New Member
    • Apr 2019
    • 3

    #2
    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.
    Last edited by Rabbit; Apr 22 '19, 04:24 PM. Reason: outside link removed per forum policy

    Comment

    Working...