Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly save sessionId when starting over #1225

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

miles-grant-ibigroup
Copy link
Collaborator

Description:
Our new start over (that supported subpaths) wasn't preserving sessionId. This is really the only variable that needs saving upon a start over

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using getUrlParams function.

@@ -153,6 +153,10 @@ export function getInitialState(userDefinedConfig) {
...(transitModeSettings || [])
]

const sessionId = new URLSearchParams(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use new URLSearchParams(getUrlParams()) from core-utils.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch thanks!

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@miles-grant-ibigroup miles-grant-ibigroup merged commit 17c7b71 into dev Jun 5, 2024
9 checks passed
@miles-grant-ibigroup miles-grant-ibigroup deleted the support-sessionId-when-starting-over branch June 5, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants