Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In a site with a login block on the home page the destination querystring is lost when the module is enabled. In the init hook the destination querystring is reset. After checking if the current page is the home page the function then returns from inside the if condition with the destination querystring not being set again.
Comments