Author: itthkjer
Date: 2006-05-02 11:27:38 +0200 (Tue, 02 May 2006)
New Revision: 2838

Modified:
   
branches/2.0/src/java/no/schibstedsok/front/searchportal/result/Linkpulse.java
Log:
updated link to external site

Modified: 
branches/2.0/src/java/no/schibstedsok/front/searchportal/result/Linkpulse.java
===================================================================
--- 
branches/2.0/src/java/no/schibstedsok/front/searchportal/result/Linkpulse.java  
    2006-05-02 08:49:40 UTC (rev 2837)
+++ 
branches/2.0/src/java/no/schibstedsok/front/searchportal/result/Linkpulse.java  
    2006-05-02 09:27:38 UTC (rev 2838)
@@ -41,8 +41,11 @@
                     toUrl = toUrl + attrArr[0] + "=" + attrArr[1];
 
             }
-            //adds the original url
-            toUrl = toUrl + "/" + props.getProperty("linkpulse.sesam") + 
orgUrl;
+            //adds to-url, if to-url links to external site we must drop 
linkpulse.sesam           
+            if (indexpage.equals("ext"))
+                toUrl = toUrl + "/" + orgUrl;
+            else
+                toUrl = toUrl + "/" + props.getProperty("linkpulse.sesam") + 
orgUrl;
         } else
             if (indexpage.equals("true"))
                 toUrl = "search/" + orgUrl;

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to