Skip to content

Commit

Permalink
Handle case where blog-prefix is blank (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
euvitudo authored and lacarmen committed Jan 4, 2020
1 parent 39136d1 commit 3c94422
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/leiningen/new/cryogen/src/cryogen/server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
:no-trailing-slash (if (or (= req-uri "")
(= req-uri "/")
(= req-uri
(.substring blog-prefix 1)))
(if (string/blank? blog-prefix)
blog-prefix
(.substring blog-prefix 1))))
(path req-uri "index.html")
(path (str req-uri ".html")))
:dirty (path (str req-uri ".html")))
Expand Down

0 comments on commit 3c94422

Please sign in to comment.