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

Dynamic group booking fix to accept "+" in URL and updated Head SEO for dynamic booking #2414

Merged
merged 3 commits into from Apr 7, 2022

Conversation

alishaz-polymath
Copy link
Member

@alishaz-polymath alishaz-polymath commented Apr 7, 2022

What does this PR do?

+ means a space only in application/x-www-form-urlencoded content, such as the query part of a URL (converting it to %20) and so it doesn't work for dynamic group booking currently, as + expected in the logic is expecting it encoded with %2b.
This PR converts " " or %20 to + so that we can still accept + from the URL and allow it to do what we intended it to do in the first place
It also considers dynamic group booking for HeadSEO details

[ref: Vercel]
[ref: Stackoverflow]

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Visit /rick+pro or /rick+free in staging and it should show the dynamic group booking page. Proceed with the booking normally.

@vercel
Copy link

vercel bot commented Apr 7, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

docs – ./apps/docs

🔍 Inspect: https://vercel.com/cal/docs/27ZxLA9BRidu4p6KrYGDacYcGyjh
✅ Preview: Canceled

[Deployment for 987bf90 canceled]

calendso – ./apps/web

🔍 Inspect: https://vercel.com/cal/calendso/5R3oz5LPFWzpNEieezXthuWFYCZX
✅ Preview: https://calendso-git-hotfix-dynamic-group-booking-cal.vercel.app

@alishaz-polymath alishaz-polymath added 🐛 bug Something isn't working 🚧 wip / in the making This is currently being worked on labels Apr 7, 2022
@alishaz-polymath alishaz-polymath self-assigned this Apr 7, 2022
@vercel vercel bot temporarily deployed to Preview – calendso April 7, 2022 09:17 Inactive
@vercel vercel bot temporarily deployed to Preview – docs April 7, 2022 09:17 Inactive
@vercel vercel bot temporarily deployed to Preview – docs April 7, 2022 09:25 Inactive
@vercel vercel bot temporarily deployed to Preview – calendso April 7, 2022 09:25 Inactive
@alishaz-polymath alishaz-polymath added 👀 ready for review and removed 🚧 wip / in the making This is currently being worked on labels Apr 7, 2022
@alishaz-polymath alishaz-polymath changed the title Dynamic group booking fix to accept "+" in URL Dynamic group booking fix to accept "+" in URL and update Head SEO for dynamic Apr 7, 2022
@alishaz-polymath alishaz-polymath changed the title Dynamic group booking fix to accept "+" in URL and update Head SEO for dynamic Dynamic group booking fix to accept "+" in URL and updated Head SEO for dynamic booking Apr 7, 2022
username={(user.username as string) || ""}
title={isDynamicGroup ? dynamicNames.join(", ") : nameOrUsername}
description={
isDynamicGroup ? `Book events with ${dynamicUsernames.join(", ")}` : (user.bio as string) || ""
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should make it A, B and C?

@baileypumfleet baileypumfleet merged commit 63635fc into main Apr 7, 2022
@baileypumfleet baileypumfleet deleted the hotfix/dynamic-group-booking branch April 7, 2022 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants