mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Yet another attempt at fixing the Tomcat redirect issue.
This commit is contained in:
parent
6875abae84
commit
9f78718009
3 changed files with 9 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -22,3 +22,5 @@ smeagol.log*
|
||||||
resources/public/content/uploads/
|
resources/public/content/uploads/
|
||||||
|
|
||||||
.eastwood
|
.eastwood
|
||||||
|
|
||||||
|
resources/public/content/Populating a game world.md
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
[image-resizer "0.1.10"]
|
[image-resizer "0.1.10"]
|
||||||
[instaparse "1.4.10"]
|
[instaparse "1.4.10"]
|
||||||
[lib-noir "0.9.9" :exclusions [org.clojure/tools.reader]]
|
[lib-noir "0.9.9" :exclusions [org.clojure/tools.reader]]
|
||||||
[markdown-clj "0.9.99" :exclusions [com.keminglabs/cljx]]
|
[markdown-clj "1.10.2"]
|
||||||
[me.raynes/fs "1.4.6"]
|
[me.raynes/fs "1.4.6"]
|
||||||
[noir-exception "0.2.5"]
|
[noir-exception "0.2.5"]
|
||||||
[org.clojars.simon_brooke/internationalisation "1.0.3"]
|
[org.clojars.simon_brooke/internationalisation "1.0.3"]
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,12 @@
|
||||||
;; If we're not inside a serlvet environment (for
|
;; If we're not inside a serlvet environment (for
|
||||||
;; example when using mock requests), then
|
;; example when using mock requests), then
|
||||||
;; .getContextPath might not exist
|
;; .getContextPath might not exist
|
||||||
(try (.getContextPath context)
|
(try
|
||||||
|
(let [path (.getContextPath context)
|
||||||
|
path' (if-not (cs/ends-with? path "/")
|
||||||
|
(str path "/")
|
||||||
|
path)]
|
||||||
|
path')
|
||||||
(catch IllegalArgumentException _ context))))
|
(catch IllegalArgumentException _ context))))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue