Skip to content

v1.4.0 — active redirect tools (DEV-111)

Choose a tag to compare

@jmcerda jmcerda released this 29 Jun 04:09
93b7bd3

Added

  • Redirect tools (drupal_create_redirect, drupal_update_redirect) for the contrib Redirect module.
    • drupal_create_redirect produces a redirect that serves its 301 (or chosen code) immediately: source leading slash stripped to the module's slash-less stored form (the "saved but never fires" cause), destination normalized to a Drupal link-field URI (bare paths wrapped internal:; entity:node/ID and absolute URLs passed through), status_code defaulting to 301 with 302/303/307/308 accepted.
    • drupal_update_redirect repoints an existing redirect's source/target or changes its status code via a partial update — the enable/fix path for a redirect that isn't firing.
    • Governed by the per-site security policy (redirect writes / administer redirects).

Resolves DEV-111. Published to npm as drupal-mcp-connector@1.4.0.