Skip to content

Commit 22a4bad

Browse files
authored
Merge pull request #50 from experius/bugfix/NUA-150
[BUGFIX][NUA-150] Fix IncludeParamsIn Redirect&FromUrl not returning …
2 parents 6fadf08 + 1cd8f12 commit 22a4bad

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Helper/Settings.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@ public function isEnabled()
6060

6161
public function includedParamsInRedirect()
6262
{
63-
return $this->scopeConfig->getValue(self::INCLUDED_PARAMS_REDIRECT,\Magento\Store\Model\ScopeInterface::SCOPE_STORE);
63+
$configValue = $this->scopeConfig->getValue(self::INCLUDED_PARAMS_REDIRECT,\Magento\Store\Model\ScopeInterface::SCOPE_STORE);
64+
return $configValue ? explode(',',$configValue) : [];
6465
}
6566

6667
public function includedParamsInFromUrl()
6768
{
68-
return $this->scopeConfig->getValue(self::INCLUDED_PARAMS_FROM_URL,\Magento\Store\Model\ScopeInterface::SCOPE_STORE);
69+
$configValue = $this->scopeConfig->getValue(self::INCLUDED_PARAMS_FROM_URL,\Magento\Store\Model\ScopeInterface::SCOPE_STORE);
70+
return $configValue ? explode(',',$configValue) : [];
71+
6972
}
7073

7174
public function getExcludeList()

0 commit comments

Comments
 (0)