Replies: 4 comments 3 replies
-
Ideally it should also work with hash values in the URL (which would not be scraped but passed through directly client side?), ie. |
Beta Was this translation helpful? Give feedback.
-
I guess "optional" is missing from the above sentence? I think I would prefer to leave it mandatory (the miniapp must define it), but extend the spec and expect from clients to overwrite it if the shared URL starts with the predefined url. Right now, if |
Beta Was this translation helpful? Give feedback.
-
We addressed this. Linking the announcement post |
Beta Was this translation helpful? Give feedback.
-
Shipped. See announcement post |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the Mini App Embed object requires a value for
button.action.url
. This creates a subtle challenge for sites that statically render their HTML pages (which is a great thing to do and should be well supported): if someone shares a URL to their page with additional URL state like query parameters, this additional state will be lost when the Mini App is launched since the staticbutton.action.url
is used instead.Example:
https://foo.bar
serves a statically generated embed withbutton.action.url
set tohttps://foo.bar
. The app wants to let users share urls likehttps://foo.bar?refer=deodad#other-state
.A simple solution to this is to make
button.action.url
and if it's not defined the action is assumed to be the exact URL that was shared. In the vast majority of cases this what a developer wants anyway, so this is a nice simplification for the default case.This is backwards compatible for embeds but will require hosts to update their scraping logic accordingly.
Beta Was this translation helpful? Give feedback.
All reactions