Skip to content

Commit

Permalink
Fix missing old redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
zk committed Sep 27, 2014
1 parent 004e4a7 commit 7c0b5f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -13,6 +13,12 @@ http://next.clojuredocs.org

## Contributing

The codebase needs a good scrub before groking will not be
painful. However, feel free to jump in if you don't mind digging
around.

Here's a few ways to contribute:

* Find & report bugs: https://github.com/zk/clojuredocs/issues
* Suggestions on how to make development on the site more friendly
(docs, codebase organization).
Expand Down
3 changes: 2 additions & 1 deletion src/clj/clojuredocs/entry.clj
Expand Up @@ -87,7 +87,8 @@
(GET "/clojure_core/:ns/:name" [ns name] (redirect-to-var ns name))
(GET "/clojure_core/:version/:ns/:name" [ns name] (redirect-to-var ns name))
(GET "/quickref/*" [] {:status 301 :headers {"Location" "/quickref"}})
(GET "/clojure_core" [] {:status 301 :headers {"Location" "/"}})
(GET "/clojure_core" [] {:status 301 :headers {"Location" "/core-library"}})
(GET "/clojure_core/:ns" [ns] {:status 301 :headers {"Location" (str "/" ns)}})
(GET "/v/:id" [id] (old-v-page-redirect id)))

(defroutes _routes
Expand Down

0 comments on commit 7c0b5f3

Please sign in to comment.