fix: generate correct referring urls and code cleanup
This commit is contained in:
1 parent
a70110df45
commit
5de929aa55
5 files changed
+4
-8
No files matched your search
@@ -92,7 +92,8 @@ class ProductViewHelper extends AbstractViewHelper
|
||||
|
||||
if ($arguments['ref']) {
|
||||
$referringPageUri = urlencode($arguments['ref']);
|
||||
$separator = false !== strpos($uri, '?') ? '&' : '?';
|
||||
$hasQuery = null !== parse_url($uri, PHP_URL_QUERY);
|
||||
$separator = $hasQuery ? '&' : '?';
|
||||
$uri .= $separator . 'ref=' . $referringPageUri;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user