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. |
1 reply
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 |
1 reply
|
We addressed this. Linking the announcement post |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.urlis used instead.Example:
https://foo.barserves a statically generated embed withbutton.action.urlset 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.urland 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.
All reactions