]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/macros
fixed link makro to do encoding of special characters
[maypole.git] / templates / factory / macros
index 06f57735b99709da092c3d9a411c4185574b6393..234b8f92e512f686ec11fab6e674dedad21781b3 100644 (file)
@@ -13,7 +13,9 @@ catenating the base URL, table, command, and any arguments.
 #%]
 [%
 MACRO link(table, command, additional, label) BLOCK;
-    '<a href="' _ base _ "/" _ table _ "/" _ command _ "/" _ additional _ '">';
+    SET lnk = base _ "/" _ table _ "/" _ command _ "/" _ additional;
+    lnk = lnk | uri | html;
+    '<a href="' _ lnk _ '">';
     label;
     "</a>";
 END;