Skip to content

Commit e68e983

Browse files
committed
Fixed get post url which was double creating the url and adding a double slash
1 parent 693c07f commit e68e983

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"magento/magento-composer-installer": "*"
77
},
88
"type": "magento2-module",
9-
"version": "0.2.1",
9+
"version": "0.2.2",
1010
"autoload": {
1111
"files": [
1212
"src/registration.php"

src/Block/Post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public function getPost()
8585
*/
8686
public function getPostUrl()
8787
{
88-
return $this->getUrl($this->_urlBuilder->getUrl($this->_scopeConfig->getValue('skywire_wordpress_api/api/sub_dir',
89-
ScopeInterface::SCOPE_STORE)) . '/' . $this->getPost()->getSlug());
88+
return $this->getUrl($this->_scopeConfig->getValue('skywire_wordpress_api/api/sub_dir',
89+
ScopeInterface::SCOPE_STORE) . '/' . $this->getPost()->getSlug());
9090
}
9191

9292
public function getFeaturedImage()

src/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Skywire_WordpressApi" setup_version="0.2.1">
3+
<module name="Skywire_WordpressApi" setup_version="0.2.2">
44
</module>
55
</config>

0 commit comments

Comments
 (0)