diff options
author | Lia Lenckowski <lialenck@protonmail.com> | 2023-08-23 17:53:59 +0200 |
---|---|---|
committer | Lia Lenckowski <lialenck@protonmail.com> | 2023-08-23 17:53:59 +0200 |
commit | c85a846fcee843ae830d1acd0833ddf95fbb3d7e (patch) | |
tree | d0021a425f0094251cf48f501d1312f74946fe0c /src/Main.hs | |
parent | 49f8a190a5de848a834e82749799295fe9a4bc50 (diff) | |
download | fastbangs-c85a846fcee843ae830d1acd0833ddf95fbb3d7e.tar fastbangs-c85a846fcee843ae830d1acd0833ddf95fbb3d7e.tar.bz2 fastbangs-c85a846fcee843ae830d1acd0833ddf95fbb3d7e.tar.zst |
make all urls relative
now works with url-rewriting reverse proxies, when BASE_URL is set correctly
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs index 540db63..74cc170 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -72,6 +72,7 @@ mkYesod "Search" [parseRoutes| instance Yesod Search where makeSessionBackend _ = return Nothing + approot = ApprootStatic "" instance YesodPersist Search where type YesodPersistBackend Search = SqlBackend |