Skip to content

Commit 5e78f84

Browse files
committed
fix: fix: Fixed an issue where GraphQL wouldn't return redirectDestUrl URLs with query strings in them ([#327](#327 (comment)))
1 parent e419bcc commit 5e78f84

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
@@ -83,8 +83,8 @@ public static function resolve($source, array $arguments, $context, ResolveInfo
8383
try {
8484
if (!UrlHelper::isAbsoluteUrl($dest) && !UrlHelper::pathHasSitePrefix($path)) {
8585
$dest = UrlHelper::siteUrl('/', null, null, $siteId);
86-
$dest = UrlHelper::mergeUrlWithPath($dest, $path);
8786
$dest = parse_url($dest, PHP_URL_PATH);
87+
$dest = UrlHelper::mergeUrlWithPath($dest, $path);
8888
}
8989
} catch (Throwable $e) {
9090
// That's ok

0 commit comments

Comments
 (0)