diff --git a/core/components/redirector/elements/plugins/plugin.redirector.php b/core/components/redirector/elements/plugins/plugin.redirector.php index fa7e854..2803f8c 100644 --- a/core/components/redirector/elements/plugins/plugin.redirector.php +++ b/core/components/redirector/elements/plugins/plugin.redirector.php @@ -10,7 +10,7 @@ /* handle redirects */ $search = $_SERVER['REQUEST_URI']; $baseUrl = $modx->getOption('base_url',null,MODX_BASE_URL); -if (!empty($baseUrl) && $baseUrl != '/' && $baseUrl != ' ') { +if (!empty($baseUrl) && $baseUrl != '/' && $baseUrl != ' ' && $baseUrl != '/'.$modx->context->get('key').'/') { $search = str_replace($baseUrl,'',$search); } $search = ltrim($search,'/'); @@ -51,4 +51,4 @@ } } } -return; \ No newline at end of file +return;