Author: michiel
Date: 2009-07-06 10:12:49 +0200 (Mon, 06 Jul 2009)
New Revision: 36545

Modified:
   mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/test/urls.jspx
Log:
found a problem with redirecting to absolute urls.

Modified: 
mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/test/urls.jspx
===================================================================
--- mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/test/urls.jspx   
2009-07-03 15:49:13 UTC (rev 36544)
+++ mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/test/urls.jspx   
2009-07-06 08:12:49 UTC (rev 36545)
@@ -187,6 +187,25 @@
       </script>
     </mm:form>
 
+    <h3>mm:redirect</h3>
+    <p>The following redirects should work.</p>
+    <mm:import externid="redirect" />
+    <mm:present referid="redirect">
+      <mm:redirect page="${redirect}" />
+    </mm:present>
+    <p>
+      <mm:link>
+        <mm:param name="redirect">/</mm:param>
+        <a href="${_}">Redirect to /</a>
+      </mm:link>
+    </p>
+    <p>
+      <mm:link>
+        <mm:param name="redirect"><mm:url page="/" absolute="true" 
/></mm:param>
+        <a href="${_}">Redirect to <mm:url page="/" absolute="true" /></a> 
(fails)
+      </mm:link>
+    </p>
+
     <h3>Unfiltered rendering</h3>
     <mm:link page="/mmbase/components/test/unfilteredurls.jspx" referids="x?">
       <iframe

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to