summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-05-19 11:22:07 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-05-19 11:22:07 +0200
commit04bd9417522fbd8cf867cacdcc9cf4ba81039f98 (patch)
treee2e34b2449840b626c8264b8917ab0fa1995ddd2 /src/Hakyll/Web
parentda3aa16c8bffe896082288902256b4454e9dc415 (diff)
downloadhakyll-04bd9417522fbd8cf867cacdcc9cf4ba81039f98.tar.gz
Ignore get params in preview server
Closes gh-27
Diffstat (limited to 'src/Hakyll/Web')
-rw-r--r--src/Hakyll/Web/Preview/Server.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Preview/Server.hs b/src/Hakyll/Web/Preview/Server.hs
index 94e890e..4269509 100644
--- a/src/Hakyll/Web/Preview/Server.hs
+++ b/src/Hakyll/Web/Preview/Server.hs
@@ -37,7 +37,7 @@ static :: FilePath -- ^ Directory to serve
static directory preServe = do
-- Obtain the path
uri <- rqURI <$> getRequest
- let filePath = replaceAll "\\?$" (const "") -- Remove trailing ?
+ let filePath = replaceAll "\\?.*$" (const "") -- Remove trailing ?
$ replaceAll "#[^#]*$" (const "") -- Remove #section
$ replaceAll "^/" (const "") -- Remove leading /
$ urlDecode $ decode $ SB.unpack uri