Skip to content

Commit d1c31b1

Browse files
committed
added comment to newlisp-redirection.lsp
1 parent 1bca4c2 commit d1c31b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
(command-event (fn (s , request)
1313
(regex NEWLISP_REDIRECTION_EXTRACT_PATH s 0x10000)
1414
(set 'request $1)
15+
; TODO: we account for most scenarios here but we don't account
16+
; for the situation where say an .html template is directly requested
17+
; by its actual path. The demo site doesn't use this but some other
18+
; sites might. The fix is to check STATIC_TRIGGER_EXTENSIONS.
19+
; The workaround is to use views (i.e. STATIC_TRANSFORMATIONS) so
20+
; that the actual file isn't specified (the way the example-site does it)
1521
(if (and request (or (not (file? request)) (directory? request)))
1622
(replace NEWLISP_REDIRECTION_REWRITE s
1723
(string $1 " /?" $2 (if $3 "&" "")) 0x10000

0 commit comments

Comments
 (0)