Duplicate function call when processing source path

Created on 21 May 2025, 19 days ago

Problem/Motivation

As a result of work done in 📌 Public method Redirect::generateHash() should unify path before generating the hash Active , the path is converted to lowercase when generating the hash. That should be unnecessary.

public static function generateHash($source_path, array $source_query, $language) {
  // Remove leading and trailing slashes, and convert to lowercase.
  $source_path = trim(mb_strtolower($source_path), '/');
  $hash = [
    'source' => mb_strtolower($source_path),

Proposed resolution

Remove duplicate use of mb_strtolower

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇵🇪Peru krystalcode

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

Comments & Activities

Production build 0.71.5 2024