on master help sign in
Frontend: fix loading css file by ios app

A <base href="/"> element in the html string makes the ios app look for (some of) its assets in /static/ instead of where they are: /private/var/containers/Bundle/Application/[BA9B...B8C]/frontend.app/static/ There should probably be no base element in the html in a WKWebView since the baseURL is set separately in a WKWebView. Resolves: #790

commit38429398ad9238273317f1d257be23be6110e789 authorBart Schipper <bart@bartschipper.com> dateFri 24 Jul 2020, 23:27 (6 years ago) parent51ecaf6
1 file changed+1−3
lib/frontend/src/Obelisk/Frontend.hs+1−3
lib/frontend/src/Obelisk/Frontend.hs+1−3
@@ -211,9 +211,7 @@ runFrontendWithConfigsAndCurrentRoute mode configs validFullEncoder frontend = d
211211 w appendHead appendBody = do
212212 rec switchover <- runRouteViewT ve switchover (_frontendMode_adjustRoute mode) $ do
213213 (switchover'', fire) <- newTriggerEvent
214− mapRoutedT (mapSetRouteT (mapRouteToUrlT (appendHead . runConfigsT configs))) $ do
215− -- The order here is important - baseTag has to be before headWidget!
216− baseTag
214+ mapRoutedT (mapSetRouteT (mapRouteToUrlT (appendHead . runConfigsT configs))) $
217215 _frontend_head frontend
218216 mapRoutedT (mapSetRouteT (mapRouteToUrlT (appendBody . runConfigsT configs))) $ do
219217 _frontend_body frontend