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 new query parameter when create new campaign #59

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

boba1007
Copy link

@boba1007 boba1007 commented Nov 1, 2024

Description

Removes the new=true query parameter from the URL when creating a new campaign, addressing unexpected navigation behavior in the campaign builder.

Motivation and Context

This change resolves the issue where the new=true query parameter forces admins back to the Basics tab upon saving another section, interrupting the intended flow when filling out sections in any order. See issue #56 for details.

How Has This Been Tested?

Tested by creating a new campaign, navigating between sections, and confirming no forced navigation back to the Basics tab after saving.

Additional Notes:

The AdminCampaignEdit component still retains the isNew prop, which is currently unused but related to the removed new=true query parameter.

Screenshots (if appropriate):

Documentation Changes

Checklist:

  • My change requires a change to the documentation.
  • I have included updates for the documentation accordingly.

@boba1007 boba1007 requested a review from ajohn25 November 1, 2024 16:53
@boba1007 boba1007 marked this pull request as ready for review November 1, 2024 16:54
Copy link
Collaborator

@ajohn25 ajohn25 left a comment

Choose a reason for hiding this comment

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

Perfect! I would go ahead and strip isNew out from AdminCampaignEdit too 👍🏾

@boba1007
Copy link
Author

Perfect! I would go ahead and strip isNew out from AdminCampaignEdit too 👍🏾

I've stripped out the isNew prop from the AdminCampaignEdit component as suggested. Let me know if this PR should be good to be merged in.

@ajohn25
Copy link
Collaborator

ajohn25 commented Nov 13, 2024

Perfect! I would go ahead and strip isNew out from AdminCampaignEdit too 👍🏾

I've stripped out the isNew prop from the AdminCampaignEdit component as suggested. Let me know if this PR should be good to be merged in.

Awesome go for it!

@boba1007 boba1007 merged commit 07abb4b into main Nov 13, 2024
4 checks passed
@boba1007 boba1007 deleted the fix-new-query branch November 13, 2024 18:06
@ajohn25 ajohn25 linked an issue Nov 18, 2024 that may be closed by this pull request
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.

Remove "new" query parameter from campaign builder
2 participants