From 90d5913f86211b5cc725d72289ac82c2c0963a88 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 26 Mar 2015 14:28:14 +0200 Subject: [PATCH] Fix broken link from previous commit --- Foundation.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation.hs b/Foundation.hs index c5a6118..a42273b 100644 --- a/Foundation.hs +++ b/Foundation.hs @@ -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.