Skip to content

Commit

Permalink
Merge pull request #41 from experius/feature/remove-unsuded-code
Browse files Browse the repository at this point in the history
codescan update
  • Loading branch information
DRdevil27 authored Jun 4, 2024
2 parents de65329 + 0462d63 commit c6c1363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Observer/Controller/ActionPredispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ protected function savePageNotFound($fromUrl, $isGraphql = false, StoreInterface
if ($isGraphql) {
// Create full url to return with GraphQL
$baseUrl = $store->getBaseUrl();
if (!strpos($fromUrl, $baseUrl)) {
var_dump(strpos($fromUrl, $baseUrl));
if (strpos($fromUrl, $baseUrl) === false) {
$fromUrl = $baseUrl . ltrim($fromUrl, '/');
}
}
Expand Down

0 comments on commit c6c1363

Please sign in to comment.