You are here

globalredirect.module in Global Redirect 8

Same filename and directory in other branches
  1. 5 globalredirect.module
  2. 6 globalredirect.module
  3. 7 globalredirect.module

The Global Redirect module redirects for all paths which have aliases but are not using the aliases which reduces the risk of duplicate content.

File

globalredirect.module
View source
<?php

/**
 * @file
 * The Global Redirect module redirects for all paths which have aliases but
 * are not using the aliases which reduces the risk of duplicate content.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function globalredirect_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.globalredirect':
      return t('This module will do a 301 redirect for all nodes which have an alias but are not using that alias.');
  }
}

Functions

Namesort descending Description
globalredirect_help Implements hook_help().