Skip to content

Commit

Permalink
fix: allow urls with query strings
Browse files Browse the repository at this point in the history
closes #92
  • Loading branch information
juancarlosfarah committed Jun 12, 2019
1 parent d187018 commit c2ef55f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/developer/DatabaseEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class DatabaseEditor extends Component {
onAdd={this.handleEdit}
onDelete={this.handleEdit}
/>
<br />
<Button
variant="contained"
className={classes.button}
Expand Down
2 changes: 2 additions & 0 deletions src/components/developer/DeveloperScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ class DeveloperScreen extends Component {
<Typography variant="h4" className={classes.screenTitle}>
{t('Developer')}
</Typography>
<br />
<Typography variant="h6" className={classes.alert}>
{t(
'Danger Zone! Proceed with caution as changes to this section might lead to data loss.'
)}
</Typography>
<br />
<DatabaseEditor />
</main>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/components/phase/PhaseApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,15 @@ class PhaseApp extends Component {
? SMART_GATEWAY_QUERY_STRING_DIVIDER
: '?';

// handle existing query strings
let existingParams = {};
const existingQueryString = uri.split('?')[1];
if (existingQueryString) {
existingParams = Qs.parse(existingQueryString);
}

const params = {
...existingParams,
spaceId,
userId,
lang,
Expand Down

0 comments on commit c2ef55f

Please sign in to comment.