globalredirect.module in Global Redirect 8
Same filename and directory in other branches
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.moduleView 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
Name | Description |
---|---|
globalredirect_help | Implements hook_help(). |