Closed hobbes7878 closed 9 months ago
How would graphics appear differently on the app? Now I see them opening in a webview, the URL of which is the same as our pages. Is there gonna be a change in the system?
OK, @pkd2512 I'm gonna ask you to do this. I need a PR that hides the SiteHeader, SiteFooter and Sharer here when there's a query param of outputType=chromeless
in the page request.
You should be able to use the $page.url
store to check if the condition is true. This has some good examples of using query params client side: https://www.okupter.com/blog/sveltekit-query-parameters#clientside-query-parameters-with-sveltekit.
I'll review the PR before we pull it in. Thanks!
cc: @MatthewWeberTR
How would graphics appear differently on the app? Now I see them opening in a webview, the URL of which is the same as our pages. Is there gonna be a change in the system?
FYI, this is for the relaunch of the mobile app, which is happening soon. The app will have its own "shell" for the header and footer, so we only want to display the content from our pages, which is why the query param...
It will still open in web view, however, they want all the content they open in web view to look as much like the app as possible, and crucially, they want to remove all links from web view that go to non-app stories, ie: our header/footer/refers on the bottom.
Need to respond to a querystring of
outputType=chromeless
by hiding those components.ToDo for January. This may be better handled in kit, but starting the conversation here.