[Yanel-commits] rev 45439 - public/yanel/trunk/src/webapp/htdocs/Google-Analytics

michi at wyona.com michi at wyona.com
Thu Nov 12 13:54:29 CET 2009


Author: michi
Date: 2009-11-12 13:54:28 +0100 (Thu, 12 Nov 2009)
New Revision: 45439

Modified:
   public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt
Log:
test re trailing slash

Modified: public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt
===================================================================
--- public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt	2009-11-12 12:22:49 UTC (rev 45438)
+++ public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt	2009-11-12 12:54:28 UTC (rev 45439)
@@ -29,6 +29,11 @@
       <xsl:text>no</xsl:text>
     </xsl:when>
 
+    <!-- Equals to expression: ends-with($URL, '/') -->
+    <xsl:when test="substring($URL, string-length($URL)) = '/'">
+      <xsl:text>no</xsl:text>
+    </xsl:when>
+
     <!-- NOTE: At the moment the suffix is only compared with .html (see $non-asset-URL-suffix) -->
     <!-- At the moment the following cases are not checked: .htm, foo-bar/, foo-bar -->
     <!--FIXME HACK: find a better method to differentiate document assets from pages: -->



More information about the Yanel-commits mailing list