Automattic / vip-cli

The VIP-CLI
https://docs.wpvip.com/vip-cli/
MIT License
58 stars 17 forks source link

fix(dev-env): detection of URLs to replace for multisites #2081

Closed sjinks closed 2 weeks ago

sjinks commented 3 weeks ago

Description

This PR fixes the generation of a map of domains to replace for a multisite environment.

Previously, if a site URL contained a path (e.g., https://domain.com/path), such an URL would be replaced with slug.vipdev.site because the system compared domain.com/path to domain.com and ignored it because the strings are not equal.

This PR fixes the procedure by comparing domains instead.

Pull request checklist

New release checklist

Steps to Test

See the ticket.

github-actions[bot] commented 3 weeks ago

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud