redirect to FirstRepositoryR

This makes the new POST form work, since otherwise it would
try to POST ConfigurationR, which is not supported.
This commit is contained in:
Joey Hess 2013-03-18 12:47:44 -04:00
parent 6ce4429c5e
commit 1d4ba882b3

View file

@ -19,7 +19,7 @@ import Assistant.XMPP.Client
{- The main configuration screen. -}
getConfigurationR :: Handler RepHtml
getConfigurationR = ifM (inFirstRun)
( getFirstRepositoryR
( redirect FirstRepositoryR
, page "Configuration" (Just Configuration) $ do
#ifdef WITH_XMPP
xmppconfigured <- liftAnnex $ isJust <$> getXMPPCreds