Use regex redirect entity's status code as default value

Created on 7 April 2025, 6 days ago

Problem/Motivation

The entity form is currently always using the default redirect status code of 301 as the default value. If one wants to alter the available status codes, that hard coded default value prevents loading of other codes if such are added in the form altering.

Steps to reproduce

  1. Alter the regex redirect form and add some status code options
  2. Save a redirect with a status code other than 301
  3. Re-edit that redirect
  4. Observe that the wrong default value of 301 is displayed on the form, even though the redirect was saved with another status code

Proposed resolution

Use the entity's status code instead of the hard coded default value for status code.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

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