-
Goal: I am trying to used the URL Parameter _embed=true to hide the black header in an embedded app, but it is not being hidden
-
Steps: I have added the URL Param to the page settings and it does not work. However, I am able to get the header to be hidden if I replace the # before the _embed=true with an ampersand &
-
Details: This only works by manually changing the the # to a & in the address bar
-
Screenshots:
Hey @snapcom,
The issue may be due to the URL parameter _embed=true
not working correctly because the question mark (?
) is missing before the parameter.
Please make sure to format the URL like this:
?_embed=true
4 Likes
@snapcom, It looks like you are using the old single page app where the app is using hash parameters instead of search parameters. In your logic, you can access those with url.hashParams (which uses #) instead of url.searchParams (which uses ?)
If you want, convert your app to a multi page app, and then you can set your search or hash parameters separately in the page settings inspector for each page
I hope this helps!
5 Likes
This was the solution!! Thank you so much, I thought I was losing my mind! Problem solved