Closed sergey-v9 closed 1 year ago
Found that host
was added to the list in a new package version:
https://unpkg.com/browse/@shopify/app-bridge-react@2.0.2/components/RoutePropagator/route-propagator.js#L47
var embeddedFrameParamsToRemove = [
'hmac',
'locale',
'protocol',
'session',
'shop',
'timestamp',
'host',
];
new_design_language
is no longer used internally, so apps can feel free to use it if they like. Closing as already completed.
useRoutePropagation
hook does not removehost
andnew_design_language
search parameters from the app frame URL while propagating them to the browser address bar when the application starts.There is the code which removes several other parameters: https://unpkg.com/browse/@shopify/app-bridge-react@1.30.0/components/RoutePropagator/route-propagator.js#L47
It looks like a bug, and
host
andnew_design_language
should be removed too (as they were added by the app-bridge itself, not by the user application)As a workaround these parameters can be filtered out from
location.search
manually beforeuseRoutePropagation(location)
called: