diff --git a/administrator/language/en-GB/en-GB.plg_system_redirect.ini b/administrator/language/en-GB/en-GB.plg_system_redirect.ini index ce68e07134984..c8533535be1a2 100644 --- a/administrator/language/en-GB/en-GB.plg_system_redirect.ini +++ b/administrator/language/en-GB/en-GB.plg_system_redirect.ini @@ -13,4 +13,6 @@ PLG_SYSTEM_REDIRECT_FIELD_EXCLUDE_URLS_REGEXP_DESC="Should the term be handled a PLG_SYSTEM_REDIRECT_FIELD_EXCLUDE_URLS_REGEXP_LABEL="Regular Expression" PLG_SYSTEM_REDIRECT_FIELD_EXCLUDE_URLS_TERM_DESC="A regular expression or a term which should be excluded." PLG_SYSTEM_REDIRECT_FIELD_EXCLUDE_URLS_TERM_LABEL="Term" +PLG_SYSTEM_REDIRECT_FIELD_STORE_FULL_URL_DESC="Save the expired URL as absolute (include domain) or relative (exclude domain)." +PLG_SYSTEM_REDIRECT_FIELD_STORE_FULL_URL_LABEL="Include Domain Name in Expired URL" PLG_SYSTEM_REDIRECT_XML_DESCRIPTION="The system redirect plugin enables the Joomla Redirect system to catch missing pages and redirect users." diff --git a/plugins/system/redirect/redirect.php b/plugins/system/redirect/redirect.php index 7a7a99d047cae..bda4602eefc71 100644 --- a/plugins/system/redirect/redirect.php +++ b/plugins/system/redirect/redirect.php @@ -297,6 +297,11 @@ private static function doErrorHandling($error) if ((bool) $params->get('collect_urls', true)) { + if (!$params->get('includeUrl', 1)) + { + $url = $urlRel; + } + $data = (object) array( 'id' => 0, 'old_url' => $url, diff --git a/plugins/system/redirect/redirect.xml b/plugins/system/redirect/redirect.xml index 7bfa8ecfc7b32..8e4c04a4fe8ce 100644 --- a/plugins/system/redirect/redirect.xml +++ b/plugins/system/redirect/redirect.xml @@ -31,6 +31,17 @@ + + + +