Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Pop base URL off of string to prevent issue with projection parameter

ZachTRicea7e37f0d809e
diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.js
index 24bda9a9e..a0a2a1f7f 100644
--- a/web/js/components/tour/modal-tour-in-progress.js
+++ b/web/js/components/tour/modal-tour-in-progress.js
@@ -132,6 +132,10 @@ class ModalInProgress extends React.Component {
// '&al=true' +
// '&tr=' + this.props.currentStoryId;
+ // Remove base URL from step links string
+ currentStepLink = currentStepLink.split('/?').pop();
+ prevStepLink = currentStepLink.split('/?').pop();
+
// Create current and previous states from step links
currentState = util.fromQueryString(currentStepLink);
prevState = util.fromQueryString(prevStepLink);