Skip to content

Commit

Permalink
Merge pull request #1847 from newrelic/mfrederick/update-cookie
Browse files Browse the repository at this point in the history
fix: Update cookie to match original spec
  • Loading branch information
John P Vajda authored Nov 16, 2021
2 parents cbc1393 + 2ce5b59 commit 1092c0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/InstallButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ const InstallButton = ({ quickstart, location, ...props }) => {
options.domain = 'newrelic.com';
}

const startTarget = btoa(
JSON.stringify({
source: 'nrio',
id: quickstart.id,
})
);
Cookies.set('start_target', startTarget, options);
Cookies.set('newrelic-quickstart-id', quickstart.id, options);
};

Expand Down

0 comments on commit 1092c0c

Please sign in to comment.