diff --git a/src/Handler/Root.hs b/src/Handler/Root.hs index 0137ef8..f5a1759 100644 --- a/src/Handler/Root.hs +++ b/src/Handler/Root.hs @@ -3,9 +3,10 @@ import Startlude import Yesod import Foundation import qualified Data.Text as T -import Settings (AppSettings(registryHostname)) +import Settings (AppSettings(registryHostname, marketplaceName)) getRootR :: HandlerFor RegistryCtx () getRootR = do - hostname <- getsYesod $ registryHostname . appSettings - redirect $ T.pack "https://marketplace.start9.com?api=" <> hostname \ No newline at end of file + url <- getsYesod $ registryHostname . appSettings + name <- getsYesod $ marketplaceName . appSettings + redirect $ T.pack "https://marketplace.start9.com?api=" <> url <> T.pack "&name=" <> name \ No newline at end of file