Same name and namespace in other branches
  1. 5.x includes/install.inc \install_goto()
  2. 6.x includes/install.inc \install_goto()
  3. 7.x includes/install.inc \install_goto()
  4. 8.9.x core/includes/install.inc \install_goto()
  5. 9 core/includes/install.inc \install_goto()

Sends the user to a different installer page.

This issues an on-site HTTP redirect. Messages (and errors) are erased.

Parameters

$path: An installer path.

File

core/includes/install.inc, line 795
API functions for installing modules and themes.

Code

function install_goto($path) {
  global $base_url;
  $headers = [
    // Not a permanent redirect.
    'Cache-Control' => 'no-cache',
  ];
  $response = new RedirectResponse($base_url . '/' . $path, 302, $headers);
  $response
    ->send();
}