Fix broken link from previous commit

This commit is contained in:
Michael Snoyman 2015-03-26 14:28:14 +02:00
parent ea17b80243
commit 90d5913f86

View File

@ -138,8 +138,8 @@ instance Yesod App where
-- problem is that sometimes CORS kicks in and breaks a static resource
-- when loading from a non-secure page. So we have this ugly hack: whenever
-- the destination is a static file, don't include the scheme or hostname.
urlRenderOverride y (StaticR s) =
Just $ uncurry (joinPath y "") $ renderRoute s
urlRenderOverride y route@StaticR{} =
Just $ uncurry (joinPath y "") $ renderRoute route
urlRenderOverride _ _ = Nothing
-- The page to be redirected to when authentication is required.