on master help sign in
Ignore get params in preview server

Closes gh-27

commit04bd9417522fbd8cf867cacdcc9cf4ba81039f98 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateThu 19 May 2011, 11:22 (15 years ago) parentda3aa16
1 file changed+1−1
src/Hakyll/Web/Preview/Server.hs+1−1
src/Hakyll/Web/Preview/Server.hs+1−1
@@ -37,7 +37,7 @@ static :: FilePath -- ^ Directory to serve
3737static directory preServe = do
3838 -- Obtain the path
3939 uri <- rqURI <$> getRequest
40− let filePath = replaceAll "\\?$" (const "") -- Remove trailing ?
40+ let filePath = replaceAll "\\?.*$" (const "") -- Remove trailing ?
4141 $ replaceAll "#[^#]*$" (const "") -- Remove #section
4242 $ replaceAll "^/" (const "") -- Remove leading /
4343 $ urlDecode $ decode $ SB.unpack uri