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

Update regex to allow for spaces and plus signs, and remove the hash before booking. #501

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

MelissaAutumn
Copy link
Member

Fixes #500

This only affects you if you dig into week or day view, but we handle it by removing the hash from the url before we send it up. So this applies it in the booking function.

Also retrieve_user_url_data basically takes /mel/a6b24d4c/ and splits it into (mel, a6b24d4c, /mel/a6b24d4c/). I'm starting to think we should just split by slash, but that can be another PR.

@MelissaAutumn MelissaAutumn requested a review from devmount June 26, 2024 18:28
@MelissaAutumn MelissaAutumn self-assigned this Jun 26, 2024
@@ -183,9 +183,10 @@ const bookEvent = async (attendeeData) => {
attendee: attendeeData,
};

const url = window.location.href.split('#')[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we guaranteed to have a '#' in the href here?

Copy link
Contributor

Choose a reason for hiding this comment

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

submitted too early. What happens if we get an error here?

Copy link
Member Author

Choose a reason for hiding this comment

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

split will still return an array with the url. if theres a hash it will be length==2 instead of 1.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh whoops my bad, thanks!

@MelissaAutumn MelissaAutumn merged commit 39386e7 into main Jun 26, 2024
4 checks passed
@MelissaAutumn MelissaAutumn deleted the bugs/500-problem-with-booking branch June 26, 2024 19:51
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.

Mobile booking error
2 participants