diff options
| author | sostler <sbostler@gmail.com> | 2010-05-08 15:05:51 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-05-08 15:05:51 -0400 |
| commit | e0f9dfb4d8f86fb2673804903889f38b9d15b2a2 (patch) | |
| tree | a8e1fc52df2f504e1fe07a2b20011ea5e5625216 /src | |
| parent | 5df6d06271cb09c3730504b347a8bdb106472395 (diff) | |
Add route for profile link with trailing slash (http://dump.fm/scottbot/)
Diffstat (limited to 'src')
| -rw-r--r-- | src/site.clj | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/site.clj b/src/site.clj index be59e09..9991c49 100644 --- a/src/site.clj +++ b/src/site.clj @@ -730,7 +730,7 @@ ORDER BY msg_count DESC") (log session (lookup-room room-key) offset params) (resp-error "UNKNOWN_ROOM")))) -;; Tags +;; Tags (defn undecoded-url-piece [url position] "Get nth thing out of a url path. @@ -1045,7 +1045,9 @@ ORDER BY msg_count DESC") (GET "/terms" (serve-template "terms" session)) (GET "/error/ie" (serve-template "error_ie" session)) - (GET "/:nick" (profile session (params :nick) "0")) + ;; Put username routes below all others in priority + (GET "/:nick" (profile session (params :nick) "0")) + (GET "/:nick/" (profile session (params :nick) "0")) (GET "/:nick/:offset" (profile session (params :nick) (params :offset))) (GET "/" (landing session)) (ANY "*" (unknown-page))) |
