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

fix: remove unnecessary search params #89

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

ansh-saini
Copy link
Contributor

Description

Fixes #83
I was able to identify three pages which made use of the arguments:

  • TimelinePage
  • GapsPage
  • SingleLineMapPage

I have made the following changes:

  • Distinguished the pages which need arguments
  • Remove empty arguments from the url. operatorId=&routeKey= etc...
  • Re-attached the arguments on pages which require them.

Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

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

wow, that's great!
you made it so clean and simple, thank you so much 🙏

@NoamGaash NoamGaash merged commit 16e4eac into hasadna:main Oct 3, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React routing | don't include redundant URL search arguments
2 participants