Skip to content
Browse files

Get proper hostname for new 404 image

  • Loading branch information...
1 parent d993be6 commit f2383a71c6e8e99b2149260d4eca2206944b9ab9 @amalloy amalloy committed Nov 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/foreclojure/ring.clj
4 src/foreclojure/ring.clj
@@ -7,7 +7,7 @@
(:use [compojure.core :only [GET routes]]
[hiccup.core :only [html]]
[foreclojure.version-utils :only [strip-version-number]]
- [foreclojure.ring-utils :only [get-host]]
+ [foreclojure.ring-utils :only [get-host static-url]]
[useful.debug :only [?]]
[ring.util.response :only [response]]))
@@ -68,7 +68,7 @@
[:div {:style "margin-left: auto; margin-right: auto; width: 300px;"}
[:p {:style "text-align: center; width: 100%; margin-top: 45px; font-family: helvetica; color: gray; font-size: 25px;"} "404 — Page not found."]
- [:img {:style "margin-left: 18px;" :src "/images/4clj-gus-confused-small.png"}]]]))
+ [:img {:style "margin-left: 18px;" :src (static-url "images/4clj-gus-confused-small.png")}]]]))
(defn wrap-404 [handler]
(routes handler

0 comments on commit f2383a7

Please sign in to comment.
Something went wrong with that request. Please try again.