When I add a redirect from "old-address" to "/home"

Add a URL redirect through Configuration, Search and metadata, URL redirects (/admin/config/search/redirect/add): from a path of the site to another path or an absolute URL, with the default status (301). Needs a user who may administer redirects.

Examples

When I add a redirect from "old-address" to "/home"
And I add a redirect from "/old-address" to "/privacy-policy"
When we add a redirect from "summer-2025" to "/campaigns"
And we add a redirect from "press" to "https://example.com/press"
Given I add a redirect from "legal" to "/privacy-policy"

Pattern

When(/^(I |we )*add a redirect from "([^"]*)" to "([^"]*)"$/, …)

Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.