Commits

Greg Slepak committed 7e2da3f

added comment to newlisp-redirection.lsp

Comments (0)

Files changed (1)

example-site/dragonfly-framework/newlisp-redirection.lsp

 (command-event (fn (s , request)
 	(regex NEWLISP_REDIRECTION_EXTRACT_PATH s 0x10000)
 	(set 'request $1)
+	; TODO: we account for most scenarios here but we don't account
+	; for the situation where say an .html template is directly requested
+	; by its actual path. The demo site doesn't use this but some other
+	; sites might. The fix is to check STATIC_TRIGGER_EXTENSIONS.
+	; The workaround is to use views (i.e. STATIC_TRANSFORMATIONS) so
+	; that the actual file isn't specified (the way the example-site does it)
 	(if (and request (or (not (file? request)) (directory? request)))
 		(replace NEWLISP_REDIRECTION_REWRITE s
 			(string $1 " /?" $2 (if $3 "&" "")) 0x10000