Skip to content
Snippets Groups Projects
  • Jaime Pérez's avatar
    3f2621e3
    Enhance redirections and make them more resilient. · 3f2621e3
    Jaime Pérez authored
    Currently, if headers have already been sent, a redirection will fail and generate errors in the error log. The user will be presented with a page containing a link that he or she will need to click on. Checking if headers have already been sent we can avoid errors, and adding a simple javascript to the "onload" event in the body of the page, we can still redirect automatically. That way, only when headers have already been sent and the users have javascript disabled, they will get to see the page.
    3f2621e3
    History
    Enhance redirections and make them more resilient.
    Jaime Pérez authored
    Currently, if headers have already been sent, a redirection will fail and generate errors in the error log. The user will be presented with a page containing a link that he or she will need to click on. Checking if headers have already been sent we can avoid errors, and adding a simple javascript to the "onload" event in the body of the page, we can still redirect automatically. That way, only when headers have already been sent and the users have javascript disabled, they will get to see the page.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.