diff examples/tutorial/geddit/templates/info.html @ 615:0dc152d128f5

GenshiTutorial: make URLs dynamic so that the app could theoretically be mounted on some other SCRIPT_NAME.
author cmlenz
date Wed, 29 Aug 2007 20:12:54 +0000
parents 16b1be35c265
children 5a2059ce1f0b
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/info.html
+++ b/examples/tutorial/geddit/templates/info.html
@@ -11,7 +11,7 @@
     <a href="${submission.url}">${submission.url}</a><br />
     posted by ${submission.username}
     at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br />
-    <a href="/comment/${submission.code}/">comment</a>
+    <a href="${url('/comment/%s/' % submission.code)}">comment</a>
     <xi:include href="comments.html" py:with="comments=submission.comments" />
   </body>
 </html>
Copyright (C) 2012-2017 Edgewall Software