Skip to content

Commit 5ae06e9

Browse files
committed
refactor: Only look at adding site prefixes to pathonly redirects via GraphQL
1 parent 64746ce commit 5ae06e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gql/resolvers/RetourResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function resolve(mixed $source, array $arguments, mixed $context,
7676
Retour::$plugin->statistics->incrementStatistics($uri, false, $siteId);
7777
}
7878
}
79-
if ($redirect !== null && isset($redirect['redirectDestUrl'])) {
79+
if ($redirect !== null && isset($redirect['redirectDestUrl']) && $redirect['redirectSrcMatch'] === 'pathonly') {
8080
$dest = $redirect['redirectDestUrl'];
8181
$path = $redirect['redirectDestUrl'];
8282
// Combine the URL and path together, merging them as appropriate

0 commit comments

Comments
 (0)