diff --git a/app/MetaGer.php b/app/MetaGer.php index a243b1aa7598cbc2baa0d1f226838dce884f20cd..dfe14975f907c4665d1f00ce23b0397b2b877593 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -451,15 +451,15 @@ class MetaGer $info = parse_url($link); if(isset($info["host"])){ $host = $info['host']; + $newurl = $link; if(strpos($host, "amazon") !== FALSE){ # This is Probably an Amazon Link. We'll add our tag as get parameter if(isset($info["query"])){ - $info["query"] .= "&tag=metager04-21"; + $newurl .= "&tag=metager04-21"; }else{ - $info["query"] = "tag=metager04-21"; + $newurl .= "?tag=metager04-21"; } } - $newurl = http_build_url($info); $result->link = $newurl; $result->partnershop = true; }