Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

wv-2848: Shortlink update (#4685)

Tom Carielloef2281e3dedf
diff --git a/web/js/containers/share.js b/web/js/containers/share.js
index c63c2992b..b401a8276 100644
--- a/web/js/containers/share.js
+++ b/web/js/containers/share.js
@@ -83,6 +83,14 @@ class ShareLinkContainer extends Component {
});
}
+ componentDidUpdate(prevProps, prevState) {
+ if (history.location.search !== prevState.queryString) {
+ this.setState({
+ queryString: history.location.search || '',
+ });
+ }
+ }
+
componentWillUnmount() {
if (this.unlisten) this.unlisten();
}