Closed skunkworks closed 6 years ago
Currently we only pass the URL path and query string, e.g. https://popupbridgev1/hi?foo=bar#baz=qux will return the following JS object:
https://popupbridgev1/hi?foo=bar#baz=qux
{ "path": "/there", "queryItems": { "foo": "bar" } }
This PR adds support for returning the URL fragment in the PopupBridge payload as hash, e.g. with the previous example URL, it'd return:
hash
{ "path": "/there", "queryItems": { "foo": "bar" } "hash": "baz=qux" }
This allows PopupBridge to support cases where meaningful data is passed back in the URL fragment.
What it does
Currently we only pass the URL path and query string, e.g.
https://popupbridgev1/hi?foo=bar#baz=qux
will return the following JS object:This PR adds support for returning the URL fragment in the PopupBridge payload as
hash
, e.g. with the previous example URL, it'd return:Why
This allows PopupBridge to support cases where meaningful data is passed back in the URL fragment.