function install_goto

Same name in other branches
  1. 7.x includes/install.inc \install_goto()
  2. 9 core/includes/install.inc \install_goto()
  3. 8.9.x core/includes/install.inc \install_goto()
  4. 10 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.

2 calls to install_goto()
install_download_translation in core/includes/install.core.inc
Download a translation file for the selected language.
install_drupal in core/includes/install.core.inc
Installs Drupal either interactively or via an array of passed-in settings.

File

core/includes/install.inc, line 508

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.