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.
By ColdSun on
I've been upgrading a few Drupal7 modules to Drupal8 but was wondering what the recommended transition from drupal_goto is?
Specifically (the last issue I have on this porting task) is converting:
D7:
drupal_goto(variable_get('discourse_server') . '/session/sso_login', array('query' => array("sso" => $return_payload, "sig" => $return_sig)));
Setting aside the Drupal_goto change, I believe the rest of it would look like:
drupal_goto(\Drupal::config('discourse.settings')->get('discourse_server') . '/session/sso_login', array('query' => array("sso" => $return_payload, "sig" => $return_sig)));
Assuming this is correct, what is the recommended way of addressing the depreciated drupal_goto in the above example?
Thanks.
Comments
As a potential solution for
As a potential solution for those wondering:
seems to work fine.