Send subtag to remote
Signed-off-by: Denis Roy <denis.roy@eclipse.org>
diff --git a/redirector.php b/redirector.php
index 30fe7bb..d1631e5 100644
--- a/redirector.php
+++ b/redirector.php
@@ -1,6 +1,6 @@
<?php
/*******************************************************************************
- * Copyright (c) 2007 Eclipse Foundation and others.
+ * Copyright (c) 2007-2013 Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -86,7 +86,12 @@
if($myrow = mysql_fetch_assoc($rs)) {
# redirect the browser now
- header("Location: " . $myrow['TargetUrl']);
+ if($_SUBTAG != "") {
+ header("Location: " . $myrow['TargetUrl'] . "?" . $_SUBTAG);
+ }
+ else {
+ header("Location: " . $myrow['TargetUrl']);
+ }
# track the click
# Do a reverse lookup on the client IP