We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bca4c2 commit d1c31b1Copy full SHA for d1c31b1
example-site/dragonfly-framework/newlisp-redirection.lsp
@@ -12,6 +12,12 @@
12
(command-event (fn (s , request)
13
(regex NEWLISP_REDIRECTION_EXTRACT_PATH s 0x10000)
14
(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)
21
(if (and request (or (not (file? request)) (directory? request)))
22
(replace NEWLISP_REDIRECTION_REWRITE s
23
(string $1 " /?" $2 (if $3 "&" "")) 0x10000
0 commit comments