Skip to content

Commit 31aa5bb

Browse files
committed
[BUGFIX][PWAI-261] Solved loader when no alternative pagenotfound url is found
1 parent 7a5ff6d commit 31aa5bb

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 1.0.2 (2021-07-09)
2+
3+
[View Release]([email protected]:experius/Magento-2-Module-PageNotFoundGraphQl.git/commits/tag/1.0.2)
4+
5+
* [BUGFIX][PWAI-261] Solved loader when no alternative pagenotfound url is found *(Lewis Voncken)*
6+
7+
8+
## 1.0.1 (2021-02-04)
9+
10+
[View Release]([email protected]:experius/Magento-2-Module-PageNotFoundGraphQl.git/commits/tag/1.0.1)
11+
12+
* [BUGFIX] Solved missing url argument after savePageNotFound *(Mr. Lewis)*
13+
14+
115
## 1.0.0 (2020-11-26)
216

317
[View Release]([email protected]:experius/Magento-2-Module-PageNotFoundGraphQl.git/commits/tag/1.0.0)

Plugin/Graphql/Magento/UrlRewriteGraphQl/Model/Resolver/EntityUrl.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public function aroundResolve(
5050
if (is_null($result) && $args['url'] != '/') {
5151
$args['url'] = $this->savePageNotFound($args['url'], $context->getExtensionAttributes()->getStore()) ?: $args['url'];
5252
$result = $proceed($field, $context, $info, $value, $args);
53-
$result['redirectCode'] = 301;
53+
if (!is_null($result)) {
54+
$result['redirectCode'] = 301;
55+
}
5456
}
5557
return $result;
5658
}

0 commit comments

Comments
 (0)