Use alt repo scheme when creating the default URL for submission
This commit is contained in:
parent
7e48e0c9fc
commit
f016e673ce
@ -230,7 +230,10 @@ getChallengeSubmissionR name = do
|
||||
let scheme = appRepoScheme $ appSettings app
|
||||
let repoHost = appRepoHost $ appSettings app
|
||||
|
||||
(formWidget, formEnctype) <- generateFormPost $ submissionForm (Just $ defaultRepo scheme repoHost challenge repo maybeUser) (defaultBranch scheme) (repoGitAnnexRemote repo)
|
||||
let defaultUrl = fromMaybe (defaultRepo scheme repoHost challenge repo maybeUser)
|
||||
((<> name) <$> (join $ userAltRepoScheme <$> entityVal <$> maybeUser))
|
||||
|
||||
(formWidget, formEnctype) <- generateFormPost $ submissionForm (Just defaultUrl) (defaultBranch scheme) (repoGitAnnexRemote repo)
|
||||
challengeLayout True challenge $ challengeSubmissionWidget formWidget formEnctype challenge
|
||||
|
||||
postChallengeSubmissionR :: Text -> Handler TypedContent
|
||||
|
Loading…
Reference in New Issue
Block a user