Skip to content

Commit

Permalink
Move to yesod-cookbook repo (pinging @psibi)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Sep 11, 2015
1 parent 32773b4 commit 82dcc03
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Handler/Wiki.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import Network.HTTP.Types (status301)
import qualified Data.Text as T

getWikiHomeR :: Handler Html
getWikiHomeR = redirectWith status301 ("https://github.com/yesodweb/yesod/wiki" :: T.Text)
getWikiHomeR = redirect ("https://github.com/yesodweb/yesod-cookbook" :: T.Text)

getWikiR :: Text -> Handler Html
getWikiR path = redirectWith status301 $ "https://github.com/yesodweb/yesod/wiki/" `T.append` path
getWikiR path = redirect $ T.concat
[ "https://github.com/yesodweb/yesod-cookbook/blob/master/cookbook/"
, path
, ".md"
]

0 comments on commit 82dcc03

Please sign in to comment.