Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Redirect Options

No security coverage Under active development

Part of the Redirect ecosystem · 26 projects

This module allows you to categorize redirects by associating them with specific taxonomy terms, such as "Server" or "Template." It adds a selection field to the redirect form to choose the redirect type and stores this information to enrich redirect data.

Redirect Options

Provides functionality for adding redirect type info to redirects by taxonomy based selection field.

Motivation

Va.gov has several legacy redirects that need to be migrated into drupal. Some are server level, some are template based.
Va.gov uses a headless setup with graphql queries generated for consumption via metalsmith frontend. In the redirect query,
information about the original redirect source is required, so this module associates a new vocabulary taxonomy term to indicate
redirect type with each redirect.

What it does

* Creates a new vocabulary: Type of Redirect and adds the terms Server and Template. You will need to change the terms to suit
your use case.
* Adds Select redirect type selection field to redirect form, pulling values from Type of Redirect vocabulary
* Creates a new table: redirect_options used for storing redirect type and redirect association
* Adds the redirect type to the redirect table title column. This will change the To column here: admin/config/search/redirect to output the redirect type as the name of the redirect link for each result. This can be modified in the view: admin/structure/views/view/redirect/edit/page_1

Installation

Composer

If your site is managed via Composer, use Composer to
download the module:
composer require "drupal/redirect_options"

Drupal 9–10 · not 11

Ask your assistant about Redirect Options

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
May 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.1.1 Stable 9–10 May 1, 2023
2.1.0 Stable 9–10 May 1, 2023