Fix extra slash in redirect for profiles that define finish_url

Created on 4 March 2025, 3 months ago

Problem/Motivation

The install_goto() function expects a relative path even though since Drupal 7 paths should have a leading slash. This causes an extra leading slash to be added, resulting in a redirect or error after installation completes.

Proposed resolution

  1. Add leading slash to installer paths before calling install_goto().
  2. To avoid breaking profiles that depend on install_goto() to add a leading slash to their finish_url, strip the leading slashes from paths in install_goto() and continue adding the leading slash.
  3. Deprecate using a relative path for finish_url
  4. Remove the workaround in Drupal 12.

API changes

Using a path without a leading slash in the finish_url value of an install profile is deprecated.

Data model changes

None.

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

install system

Created by

πŸ‡ΊπŸ‡ΈUnited States darren oh Lakeland, Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024