diff --git a/src/services/ShortlinkService.php b/src/services/ShortlinkService.php index fb7cbeb..87976e2 100644 --- a/src/services/ShortlinkService.php +++ b/src/services/ShortlinkService.php @@ -121,7 +121,7 @@ public function handleRedirect(): void // check if our hostname is not one of the existing Craft sites, if so redirect // TODO add !array_intersect - if(array_intersect($needle, $baseUrls)) { + if(!array_intersect($needle, $baseUrls)) { // check if query string should be stripped or not if (!Shortlink::$settings->redirectQueryString) { $path = UrlHelper::stripQueryString($path); diff --git a/src/templates/dashboard/index.twig b/src/templates/dashboard/index.twig index 1b21501..88cdae0 100644 --- a/src/templates/dashboard/index.twig +++ b/src/templates/dashboard/index.twig @@ -29,7 +29,11 @@ {{- shortlink.shortlinkUri -}}