Skip to content

Commit

Permalink
Fix urls for multi-store
Browse files Browse the repository at this point in the history
  • Loading branch information
andriysvyryda committed Aug 21, 2023
1 parent e8f4453 commit 94417fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Model/Resolver/DataProvider/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function getDynamicData($author, $fields = null)
$data[$key] = str_replace(
'/' . $this->scopeResolver->getScope()->getCode() . '/',
'/',
$author->$method()
$data[$key]
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Model/Resolver/DataProvider/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function getDynamicData($category, $fields = null)
$data[$key] = str_replace(
'/' . $this->scopeResolver->getScope()->getCode() . '/',
'/',
$category->$method()
$data[$key]
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Model/Resolver/DataProvider/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function getDynamicData($post, $fields = null)
$data[$key] = str_replace(
'/' . $this->scopeResolver->getScope()->getCode() . '/',
'/',
$post->$method()
$data[$key]
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Model/Resolver/DataProvider/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function getDynamicData($tag, $fields = null)
$data[$key] = str_replace(
'/' . $this->scopeResolver->getScope()->getCode() . '/',
'/',
$tag->$method()
$data[$key]
);
}
}
Expand Down

0 comments on commit 94417fe

Please sign in to comment.