Skip to content

Commit

Permalink
refactor(frontend): update links for odk collect by intent task_id --…
Browse files Browse the repository at this point in the history
…> task_filter
  • Loading branch information
spwoodcock committed Jun 20, 2024
1 parent 08d68db commit 9b43534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/components/DialogTaskActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function Dialog({ taskId, feature, map, view }) {
);

if (isMobile) {
document.location.href = `odkcollect://form/${projectInfo.xform_id}?task_id=${taskId}`;
document.location.href = `odkcollect://form/${projectInfo.xform_id}?task_filter=${taskId}`;
} else {
dispatch(
CommonActions.SetSnackBar({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const TaskFeatureSelectionPopup = ({

if (isMobile) {
// Load entity in ODK Collect by intent
document.location.href = `odkcollect://form/${xformId}?task_id=${taskId}&existing=${entityUuid}`;
document.location.href = `odkcollect://form/${xformId}?existing=${entityUuid}`;
} else {
dispatch(
CommonActions.SetSnackBar({
Expand Down

0 comments on commit 9b43534

Please sign in to comment.